aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
committerMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
commit3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /procps
parentb558e76eb1ba173ce3501c3e13fb80f426a7faac (diff)
downloadbusybox-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.gz
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'procps')
-rw-r--r--procps/free.c2
-rw-r--r--procps/kill.c7
-rw-r--r--procps/ps.c2
-rw-r--r--procps/uptime.c2
4 files changed, 7 insertions, 6 deletions
diff --git a/procps/free.c b/procps/free.c
index a33fa9a59..f2e746e39 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -60,7 +60,7 @@ extern int free_main(int argc, char **argv)
printf("%6s%13ld%13ld%13ld\n", "Total:", info.totalram+info.totalswap,
(info.totalram-info.freeram)+(info.totalswap-info.freeswap),
info.freeram+info.freeswap);
- return(TRUE);
+ return EXIT_SUCCESS;
}
diff --git a/procps/kill.c b/procps/kill.c
index 7ade8228c..dd5ca49fa 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -158,7 +158,7 @@ extern int kill_main(int argc, char **argv)
}
}
fprintf(stderr, "\n\n");
- exit(TRUE);
+ return EXIT_SUCCESS;
}
break;
case '-':
@@ -236,11 +236,12 @@ extern int kill_main(int argc, char **argv)
* upon exit, so we can save a byte or two */
argv++;
}
- exit (all_found);
+ if (all_found == FALSE)
+ return EXIT_FAILURE;
}
#endif
- exit(TRUE);
+ return EXIT_SUCCESS;
end:
diff --git a/procps/ps.c b/procps/ps.c
index df321612a..4998e15b1 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -183,7 +183,7 @@ extern int ps_main(int argc, char **argv)
fprintf(stdout, "\n");
}
closedir(dir);
- return(TRUE);
+ return EXIT_SUCCESS;
}
diff --git a/procps/uptime.c b/procps/uptime.c
index fe4e48cd6..159f24baa 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -70,5 +70,5 @@ extern int uptime_main(int argc, char **argv)
LOAD_INT(info.loads[1]), LOAD_FRAC(info.loads[1]),
LOAD_INT(info.loads[2]), LOAD_FRAC(info.loads[2]));
- return(TRUE);
+ return EXIT_SUCCESS;
}