summaryrefslogtreecommitdiff
path: root/rmmod.c
diff options
context:
space:
mode:
authorMatt Kraai2000-12-01 02:55:13 +0000
committerMatt Kraai2000-12-01 02:55:13 +0000
commit3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /rmmod.c
parentb558e76eb1ba173ce3501c3e13fb80f426a7faac (diff)
downloadbusybox-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.zip
busybox-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.gz
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'rmmod.c')
-rw-r--r--rmmod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rmmod.c b/rmmod.c
index dd29352..f5d7d35 100644
--- a/rmmod.c
+++ b/rmmod.c
@@ -34,7 +34,7 @@ _syscall1(int, delete_module, const char *, name)
extern int rmmod_main(int argc, char **argv)
{
- int ret = TRUE;
+ int ret = EXIT_SUCCESS;
if (argc <= 1) {
usage(rmmod_usage);
}
@@ -47,9 +47,9 @@ extern int rmmod_main(int argc, char **argv)
/* Unload _all_ unused modules via NULL delete_module() call */
if (delete_module(NULL)) {
perror("rmmod");
- exit(FALSE);
+ return EXIT_FAILURE;
}
- exit(TRUE);
+ return EXIT_SUCCESS;
default:
usage(rmmod_usage);
}
@@ -59,7 +59,7 @@ extern int rmmod_main(int argc, char **argv)
while (argc-- > 0) {
if (delete_module(*argv) < 0) {
perror(*argv);
- ret=FALSE;
+ ret = EXIT_FAILURE;
}
argv++;
}