mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 18:12:54 -05: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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue