summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2015-06-02 19:44:40 +0200
committerDirk Engling <erdgeist@erdgeist.org>2015-06-02 19:44:40 +0200
commitcd57e6da895a1d64f17cf0cf5ab87f8cc78bd765 (patch)
treebbffbd01ee8d886d17da97efe4d2949b875fb0c1 /src
parentf784fc3b3356109aecd7b44486513f7f5a2dcce9 (diff)
parent9b783b53ee8543f7922b3adc496a04e9486983c6 (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'src')
-rw-r--r--src/export/extract_version_1.c4
-rw-r--r--src/export/extract_version_3.c8
-rw-r--r--src/export/extract_version_4.c2
-rw-r--r--src/export/split_version_2.c5
-rw-r--r--src/export/split_version_3.c2
5 files changed, 11 insertions, 10 deletions
diff --git a/src/export/extract_version_1.c b/src/export/extract_version_1.c
index 0e03e1e..c727b4f 100644
--- a/src/export/extract_version_1.c
+++ b/src/export/extract_version_1.c
@@ -210,13 +210,13 @@ int main( )
210 /* Write out results */ 210 /* Write out results */
211 for( i=0; i<14; ++i ) { 211 for( i=0; i<14; ++i ) {
212 /* if( g_state.outfill[i] > 1024*1024*6 ) printf( "Large: %s %zd\n", g_state.ort, g_state.outfill[i] ); */ 212 /* if( g_state.outfill[i] > 1024*1024*6 ) printf( "Large: %s %zd\n", g_state.ort, g_state.outfill[i] ); */
213 write( g_state.outfiles[i], g_state.outbuf[i], g_state.outfill[i] ); 213 (void)write( g_state.outfiles[i], g_state.outbuf[i], g_state.outfill[i] );
214 g_state.outfill[i] = 0; 214 g_state.outfill[i] = 0;
215 } 215 }
216 } 216 }
217 217
218 for( i=0; i<14; ++i ) { 218 for( i=0; i<14; ++i ) {
219 write( g_state.outfiles[i], g_state.outbuf[i], g_state.outfill[i] ); 219 (void)write( g_state.outfiles[i], g_state.outbuf[i], g_state.outfill[i] );
220 close( g_state.outfiles[i] ); 220 close( g_state.outfiles[i] );
221 } 221 }
222 222
diff --git a/src/export/extract_version_3.c b/src/export/extract_version_3.c
index c4914a7..329c1a8 100644
--- a/src/export/extract_version_3.c
+++ b/src/export/extract_version_3.c
@@ -113,11 +113,11 @@ int main( int args, char **argv )
113 /* Open file and dump our de-"crypted" header and then rest of file */ 113 /* Open file and dump our de-"crypted" header and then rest of file */
114 fh = open( filename, O_CREAT | O_TRUNC | O_WRONLY, 0644 ); 114 fh = open( filename, O_CREAT | O_TRUNC | O_WRONLY, 0644 );
115 if( enc_len > header_len ) { 115 if( enc_len > header_len ) {
116 write( fh, df, enc_len ); 116 (void)write( fh, df, enc_len );
117 write( fh, mf + enc_len, offset - old_offset - enc_len ); 117 (void)write( fh, mf + enc_len, offset - old_offset - enc_len );
118 } else { 118 } else {
119 write( fh, df, header_len ); 119 (void)write( fh, df, header_len );
120 write( fh, mf + header_len, offset - old_offset - header_len ); 120 (void)write( fh, mf + header_len, offset - old_offset - header_len );
121 } 121 }
122 close( fh ); 122 close( fh );
123 } 123 }
diff --git a/src/export/extract_version_4.c b/src/export/extract_version_4.c
index 735cb3a..252831a 100644
--- a/src/export/extract_version_4.c
+++ b/src/export/extract_version_4.c
@@ -50,7 +50,7 @@ error_continue:
50 fprintf( stderr, "Could not open output file %s\n", respath ); 50 fprintf( stderr, "Could not open output file %s\n", respath );
51 exit(1); 51 exit(1);
52 } 52 }
53 write( resfile, output, z.total_out ); 53 (void)write( resfile, output, z.total_out );
54 close( resfile ); 54 close( resfile );
55 offs += z.total_in; 55 offs += z.total_in;
56 56
diff --git a/src/export/split_version_2.c b/src/export/split_version_2.c
index 54e2313..6eafe55 100644
--- a/src/export/split_version_2.c
+++ b/src/export/split_version_2.c
@@ -237,16 +237,17 @@ int main( int args, char **argv ) {
237 if( g_state.outfill[0] > limit ) 237 if( g_state.outfill[0] > limit )
238 for( i=0; i<g_outfiles; ++i ) { 238 for( i=0; i<g_outfiles; ++i ) {
239 if( g_state.outfill[i] > 1024*1024*6 ) printf( "Large: %zd\n", g_state.outfill[i] ); 239 if( g_state.outfill[i] > 1024*1024*6 ) printf( "Large: %zd\n", g_state.outfill[i] );
240 write( g_state.outfiles[i], g_state.outbuf[i], g_state.outfill[i] ); 240 (void)write( g_state.outfiles[i], g_state.outbuf[i], g_state.outfill[i] );
241 g_state.outfill[i] = 0; 241 g_state.outfill[i] = 0;
242 } 242 }
243 } 243 }
244 244
245 for( i=0; i<g_outfiles; ++i ) { 245 for( i=0; i<g_outfiles; ++i ) {
246 write( g_state.outfiles[i], g_state.outbuf[i], g_state.outfill[i] ); 246 (void)write( g_state.outfiles[i], g_state.outbuf[i], g_state.outfill[i] );
247 close( g_state.outfiles[i] ); 247 close( g_state.outfiles[i] );
248 } 248 }
249 unmap_file( &data ); 249 unmap_file( &data );
250 unmap_file( &index ); 250 unmap_file( &index );
251 251
252 return 0;
252} 253}
diff --git a/src/export/split_version_3.c b/src/export/split_version_3.c
index 2019762..853d95d 100644
--- a/src/export/split_version_3.c
+++ b/src/export/split_version_3.c
@@ -49,7 +49,7 @@ int main( int argc, char **args ) {
49 off = p[file+1]; 49 off = p[file+1];
50 /* Look for end of this chunk, which is <count> strings long */ 50 /* Look for end of this chunk, which is <count> strings long */
51 for( strnr=0; strnr < count; ++strnr ) { while( f[off++] ) {}; f[off-1] = '\n'; } 51 for( strnr=0; strnr < count; ++strnr ) { while( f[off++] ) {}; f[off-1] = '\n'; }
52 write( outfiles[file], f + p[file+1], off - p[file+1] ); 52 (void)write( outfiles[file], f + p[file+1], off - p[file+1] );
53 } 53 }
54 } 54 }
55 55