summaryrefslogtreecommitdiffstats
path: root/rbutil/sansapatcher/main.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-07-14 16:43:47 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-07-14 16:43:47 +0000
commitd4e3839f0562bdd61d26c705fb3c0dbba2bc03d3 (patch)
tree0ce8a4a05199afcfc4cbd7d79434f3d754149b86 /rbutil/sansapatcher/main.c
parent3f830cb96b3b6adeea5bad5a7bd5f1f54a625ee7 (diff)
downloadrockbox-d4e3839f0562bdd61d26c705fb3c0dbba2bc03d3.tar.gz
rockbox-d4e3839f0562bdd61d26c705fb3c0dbba2bc03d3.zip
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
Diffstat (limited to 'rbutil/sansapatcher/main.c')
-rw-r--r--rbutil/sansapatcher/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/sansapatcher/main.c b/rbutil/sansapatcher/main.c
index 4e95ae82b2..bfe948f922 100644
--- a/rbutil/sansapatcher/main.c
+++ b/rbutil/sansapatcher/main.c
@@ -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;