diff options
Diffstat (limited to 'src/export/split_version_2.c')
-rw-r--r-- | src/export/split_version_2.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 | } |