Don't ignore the result of fwrite. Since we're building with -Wall and -Werror, this causes compile failures.

This commit is contained in:
Simon Levermann 2013-08-07 13:13:04 +02:00
parent d04f2d0e51
commit 6349ccc97b

View File

@ -138,7 +138,7 @@ int main(int argc, char *argv[])
if ( file==NULL ){return 1;} if ( file==NULL ){return 1;}
uint8_t * buffer = malloc(Messenger_size()); uint8_t * buffer = malloc(Messenger_size());
Messenger_save(buffer); Messenger_save(buffer);
fwrite(buffer, 1, Messenger_size(), file); size_t write_result = fwrite(buffer, 1, Messenger_size(), file);
free(buffer); free(buffer);
fclose(file); fclose(file);
} }