summaryrefslogtreecommitdiffstats
path: root/rbutil/sansapatcher/bin2c.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/bin2c.c
parent3f830cb96b3b6adeea5bad5a7bd5f1f54a625ee7 (diff)
downloadrockbox-d4e3839f0562bdd61d26c705fb3c0dbba2bc03d3.tar.gz
rockbox-d4e3839f0562bdd61d26c705fb3c0dbba2bc03d3.tar.bz2
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/bin2c.c')
-rw-r--r--rbutil/sansapatcher/bin2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/sansapatcher/bin2c.c b/rbutil/sansapatcher/bin2c.c
index 85941a1de0..7b0606912b 100644
--- a/rbutil/sansapatcher/bin2c.c
+++ b/rbutil/sansapatcher/bin2c.c
@@ -39,7 +39,7 @@ static off_t filesize(int fd)
return buf.st_size;
}
-static int write_cfile(unsigned char* buf, off_t len, char* cname)
+static int write_cfile(const unsigned char* buf, off_t len, const char* cname)
{
char filename[256];
FILE* fp;
@@ -72,7 +72,7 @@ static int write_cfile(unsigned char* buf, off_t len, char* cname)
return 0;
}
-static int write_hfile(off_t len, char* cname)
+static int write_hfile(off_t len, const char* cname)
{
char filename[256];
FILE* fp;