summaryrefslogtreecommitdiffstats
path: root/tools/iriver.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-04-10 21:16:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-04-10 21:16:00 +0000
commitafecfe46f314e9b5ba1d5d1d98d3e521be5f00b0 (patch)
treed18d6c67bde6491e297fa54331a5093000df3a49 /tools/iriver.c
parentf8f1f3e8119a03f12e29b322c7e907d5581d7983 (diff)
downloadrockbox-afecfe46f314e9b5ba1d5d1d98d3e521be5f00b0.tar.gz
rockbox-afecfe46f314e9b5ba1d5d1d98d3e521be5f00b0.tar.bz2
rockbox-afecfe46f314e9b5ba1d5d1d98d3e521be5f00b0.zip
cleanup code for picky compiler warning options
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17060 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/iriver.c')
-rw-r--r--tools/iriver.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/iriver.c b/tools/iriver.c
index 240f9e36a2..6730fbd8b2 100644
--- a/tools/iriver.c
+++ b/tools/iriver.c
@@ -49,16 +49,16 @@ static int testheader( const unsigned char * const data )
{
const unsigned char * const d = data+16;
const char * const * m = models;
- int index = 0;
+ int ind = 0;
while( *m )
{
- if( memcmp( header[ index ], d, 16 ) == 0 )
- return index;
- index++;
+ if( memcmp( header[ ind ], d, 16 ) == 0 )
+ return ind;
+ ind++;
m++;
};
return -1;
-};
+}
static void modifyheader( unsigned char * data )
{
@@ -70,7 +70,7 @@ static void modifyheader( unsigned char * data )
h = header_modify;
*data++ ^= *h++;
};
-};
+}
static FILE * openinfile( const char * filename )
{
@@ -82,7 +82,7 @@ static FILE * openinfile( const char * filename )
exit( -1 );
};
return F;
-};
+}
static FILE * openoutfile( const char * filename )
{
@@ -94,7 +94,7 @@ static FILE * openoutfile( const char * filename )
exit( -1 );
};
return F;
-};
+}
int iriver_decode(char *infile_name, char *outfile_name, BOOL modify,
enum striptype stripmode )
@@ -256,7 +256,7 @@ int iriver_decode(char *infile_name, char *outfile_name, BOOL modify,
};
return 0;
-};
+}
int iriver_encode(char *infile_name, char *outfile_name, BOOL modify )
{
@@ -376,4 +376,4 @@ int iriver_encode(char *infile_name, char *outfile_name, BOOL modify )
fprintf( stderr, "File encoded successfully and checksum table built!\n" );
return 0;
-};
+}