mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-26 23:36:37 -04:00
Make functions in sansapatcher static and their arguments const if possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18037 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3f830cb96b
commit
d4e3839f05
4 changed files with 21 additions and 22 deletions
|
|
@ -50,7 +50,7 @@ enum {
|
|||
UPDATE_PPBL
|
||||
};
|
||||
|
||||
void print_usage(void)
|
||||
static void print_usage(void)
|
||||
{
|
||||
fprintf(stderr,"Usage: sansapatcher --scan\n");
|
||||
#ifdef __WIN32__
|
||||
|
|
@ -88,10 +88,10 @@ void print_usage(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
char* get_parttype(int pt)
|
||||
static const char* get_parttype(int pt)
|
||||
{
|
||||
int i;
|
||||
static char unknown[]="Unknown";
|
||||
static const char unknown[]="Unknown";
|
||||
|
||||
if (pt == -1) {
|
||||
return "HFS/HFS+";
|
||||
|
|
@ -108,7 +108,7 @@ char* get_parttype(int pt)
|
|||
return unknown;
|
||||
}
|
||||
|
||||
void display_partinfo(struct sansa_t* sansa)
|
||||
static void display_partinfo(struct sansa_t* sansa)
|
||||
{
|
||||
int i;
|
||||
double sectors_per_MB = (1024.0*1024.0)/sansa->sector_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue