- use standard-imposed constants some more
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 16 Nov 2007 12:39:16 +0000 (12:39 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 16 Nov 2007 12:39:16 +0000 (12:39 -0000)
coreutils/mv.c
coreutils/od_bloaty.c
coreutils/sort.c
coreutils/split.c

index 5d0b515619307d0fccdd78fac0b2a763531faeed..d8dc6c06b8dcea0ee24941f27b95310d5349543a 100644 (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)) {
index 9655c2398ddd4f9845dee15946bfa13f4ef29300..54029ff5b5e458797c87445f0b69c6d2f1731780 100644 (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);
 
index 3132346754cbb189d4d8bd3e52977f1def7cff68..1d6c599709773fb9496eb1c7c369e70f162c30a5 100644 (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 */
index 51a631c563944837d3fdc1a748aeabb72245d34d..895a04b06232724d2f59faa4b951a2b287fea892 100644 (file)
@@ -137,5 +137,5 @@ int split_main(int argc, char **argv)
                        src += to_write;
                } while (bytes_read);
        }
-       return 0;
+       return EXIT_SUCCESS;
 }