summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2014-02-24 02:16:33 +0100
committerDirk Engling <erdgeist@erdgeist.org>2014-02-24 02:16:33 +0100
commita0fba290f03b9d3d4327dd01d56d8f79f08951c5 (patch)
treecbf0e8426ccd5f2fe7b5d013292f468fef5f0b70 /src
parentbfc98dbb175752ce2ff657baa9192e43f99cf5a3 (diff)
Silence -Wextra warnings
Diffstat (limited to 'src')
-rw-r--r--src/export/extract_version_2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/export/extract_version_2.c b/src/export/extract_version_2.c
index fe85252..6686dca 100644
--- a/src/export/extract_version_2.c
+++ b/src/export/extract_version_2.c
@@ -29,7 +29,8 @@ static uint8_t mantra_in[] = { 0x68, 0x35, 0x2d, 0x6c };
29int main( int args, char **argv ) 29int main( int args, char **argv )
30{ 30{
31 int filenum = 0, run = 1; 31 int filenum = 0, run = 1;
32 size_t offset = 0, oldoffset = -1, reported = 0, enc_len = 32; 32 size_t offset = 0, reported = 0, enc_len = 32;
33 ssize_t oldoffset = -1;
33 uint8_t mantra[4], id0, id5, *mappedfile; 34 uint8_t mantra[4], id0, id5, *mappedfile;
34 MAP map; 35 MAP map;
35 36
@@ -87,9 +88,8 @@ int main( int args, char **argv )
87 if( oldoffset != -1 ) 88 if( oldoffset != -1 )
88 { 89 {
89 uint8_t *mf = mappedfile + oldoffset, df[128]; 90 uint8_t *mf = mappedfile + oldoffset, df[128];
90 size_t filename_len, header_len; 91 size_t filename_len, header_len, i;
91 char filename_template[32], filename[32]; 92 char filename_template[32], filename[32];
92 int i;
93 93
94 /* De-"crypt" obfuscation to our header copy */ 94 /* De-"crypt" obfuscation to our header copy */
95 for( i=0; i<enc_len; ++i) 95 for( i=0; i<enc_len; ++i)