programs: fix signs of some exit statuses

This commit is contained in:
Eric Biggers 2016-10-16 17:37:32 -07:00
parent e20e275081
commit 31c4ac39a7
3 changed files with 4 additions and 4 deletions

View File

@ -456,7 +456,7 @@ tmain(int argc, tchar *argv[])
case '9':
level = parse_compression_level(opt_char, toptarg);
if (level == 0)
return -1;
return 1;
break;
case 'g':
wrapper = GZIP_WRAPPER;

View File

@ -151,7 +151,7 @@ tmain(int argc, tchar *argv[])
buf = xmalloc(bufsize);
if (buf == NULL)
return -1;
return 1;
if (argc == 0) {
argv = default_file_list;
@ -193,5 +193,5 @@ tmain(int argc, tchar *argv[])
ret = 0;
out:
free(buf);
return ret;
return -ret;
}

View File

@ -466,7 +466,7 @@ tmain(int argc, tchar *argv[])
options.compression_level =
parse_compression_level(opt_char, toptarg);
if (options.compression_level == 0)
return -1;
return 1;
break;
case 'c':
options.to_stdout = true;