mirror of
https://github.com/intel/isa-l.git
synced 2025-10-29 12:18:00 +01:00
igzip: exit with status 1 in applications upon failure
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
@@ -44,17 +44,17 @@ main(int argc, char *argv[])
|
||||
|
||||
if (argc != 3) {
|
||||
fprintf(stderr, "Usage: igzip_sync_flush_example infile outfile\n");
|
||||
exit(0);
|
||||
exit(1);
|
||||
}
|
||||
in = fopen(argv[1], "rb");
|
||||
if (!in) {
|
||||
fprintf(stderr, "Can't open %s for reading\n", argv[1]);
|
||||
exit(0);
|
||||
exit(1);
|
||||
}
|
||||
out = fopen(argv[2], "wb");
|
||||
if (!out) {
|
||||
fprintf(stderr, "Can't open %s for writing\n", argv[2]);
|
||||
exit(0);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
printf("igzip_sync_flush_example\nWindow Size: %d K\n", IGZIP_HIST_SIZE / 1024);
|
||||
|
||||
Reference in New Issue
Block a user