- use standard-imposed constants some more

This commit is contained in:
Bernhard Reutner-Fischer 2007-11-16 12:39:16 +00:00
parent a702457eac
commit 7c2db5c198
4 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ int mv_main(int argc, char **argv)
if (argc == 2) {
dest_exists = cp_mv_stat(last, &dest_stat);
if (dest_exists < 0) {
return 1;
return EXIT_FAILURE;
}
if (!(dest_exists & 2)) {

View File

@ -1411,7 +1411,7 @@ int od_main(int argc, char **argv)
/* skip over any unwanted header bytes */
skip(n_bytes_to_skip);
if (!in_stream)
return 1;
return EXIT_FAILURE;
pseudo_offset = (flag_pseudo_start ? pseudo_start - n_bytes_to_skip : 0);

View File

@ -374,9 +374,9 @@ int sort_main(int argc, char **argv)
for (i = 1; i < linecount; i++)
if (compare_keys(&lines[i-1], &lines[i]) > j) {
fprintf(stderr, "Check line %d\n", i);
return 1;
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
#endif
/* Perform the actual sort */

View File

@ -137,5 +137,5 @@ int split_main(int argc, char **argv)
src += to_write;
} while (bytes_read);
}
return 0;
return EXIT_SUCCESS;
}