diff options
author | Matt Kraai | 2000-12-01 02:55:13 +0000 |
---|---|---|
committer | Matt Kraai | 2000-12-01 02:55:13 +0000 |
commit | 3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (patch) | |
tree | 013a1e7752113314831ad7d51854ce8dc9e0918b /swaponoff.c | |
parent | b558e76eb1ba173ce3501c3e13fb80f426a7faac (diff) | |
download | busybox-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.zip busybox-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.gz |
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'swaponoff.c')
-rw-r--r-- | swaponoff.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/swaponoff.c b/swaponoff.c index 4a1c8f9..0ae0c36 100644 --- a/swaponoff.c +++ b/swaponoff.c @@ -50,7 +50,7 @@ static void swap_enable_disable(char *device) if (status != 0) { perror(applet_name); - exit(FALSE); + exit(EXIT_FAILURE); } } @@ -69,7 +69,7 @@ static void do_em_all() } } endmntent(f); - exit(TRUE); + exit(EXIT_SUCCESS); } @@ -105,9 +105,8 @@ extern int swap_on_off_main(int argc, char **argv) } } swap_enable_disable(*argv); - exit(TRUE); + return EXIT_SUCCESS; usage_and_exit: usage((whichApp == SWAPON_APP) ? swapon_usage : swapoff_usage); - exit(FALSE); } |