summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
Diffstat (limited to 'src/export')
-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.c4
-rw-r--r--src/export/split_version_3.c2
5 files changed, 10 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 aa0bdf0..6eafe55 100644
--- a/src/export/split_version_2.c
+++ b/src/export/split_version_2.c
@@ -237,13 +237,13 @@ 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 );
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