svn commit: trunk/busybox/coreutils

aldot at busybox.net aldot at busybox.net
Fri Nov 16 04:39:18 PST 2007


Author: aldot
Date: 2007-11-16 04:39:16 -0800 (Fri, 16 Nov 2007)
New Revision: 20435

Log:
- use standard-imposed constants some more


Modified:
   trunk/busybox/coreutils/mv.c
   trunk/busybox/coreutils/od_bloaty.c
   trunk/busybox/coreutils/sort.c
   trunk/busybox/coreutils/split.c


Changeset:
Modified: trunk/busybox/coreutils/mv.c
===================================================================
--- trunk/busybox/coreutils/mv.c	2007-11-16 12:37:23 UTC (rev 20434)
+++ trunk/busybox/coreutils/mv.c	2007-11-16 12:39:16 UTC (rev 20435)
@@ -58,7 +58,7 @@
 	if (argc == 2) {
 		dest_exists = cp_mv_stat(last, &dest_stat);
 		if (dest_exists < 0) {
-			return 1;
+			return EXIT_FAILURE;
 		}
 
 		if (!(dest_exists & 2)) {

Modified: trunk/busybox/coreutils/od_bloaty.c
===================================================================
--- trunk/busybox/coreutils/od_bloaty.c	2007-11-16 12:37:23 UTC (rev 20434)
+++ trunk/busybox/coreutils/od_bloaty.c	2007-11-16 12:39:16 UTC (rev 20435)
@@ -1411,7 +1411,7 @@
 	/* 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);
 

Modified: trunk/busybox/coreutils/sort.c
===================================================================
--- trunk/busybox/coreutils/sort.c	2007-11-16 12:37:23 UTC (rev 20434)
+++ trunk/busybox/coreutils/sort.c	2007-11-16 12:39:16 UTC (rev 20435)
@@ -374,9 +374,9 @@
 		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 */

Modified: trunk/busybox/coreutils/split.c
===================================================================
--- trunk/busybox/coreutils/split.c	2007-11-16 12:37:23 UTC (rev 20434)
+++ trunk/busybox/coreutils/split.c	2007-11-16 12:39:16 UTC (rev 20435)
@@ -137,5 +137,5 @@
 			src += to_write;
 		} while (bytes_read);
 	}
-	return 0;
+	return EXIT_SUCCESS;
 }



More information about the busybox-cvs mailing list