aboutsummaryrefslogtreecommitdiff
path: root/swaponoff.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-01 02:55:13 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-01 02:55:13 +0000
commit8cb2f75a75eb9694f36312ab4856d335ab2bac19 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /swaponoff.c
parent8bfd1e939579e988ad4d2c0cc1425448f1fd7236 (diff)
downloadbusybox-w32-8cb2f75a75eb9694f36312ab4856d335ab2bac19.tar.gz
busybox-w32-8cb2f75a75eb9694f36312ab4856d335ab2bac19.tar.bz2
busybox-w32-8cb2f75a75eb9694f36312ab4856d335ab2bac19.zip
Stop using TRUE and FALSE for exit status.
git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'swaponoff.c')
-rw-r--r--swaponoff.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/swaponoff.c b/swaponoff.c
index 4a1c8f93f..0ae0c36ee 100644
--- a/swaponoff.c
+++ b/swaponoff.c
@@ -50,7 +50,7 @@ static void swap_enable_disable(char *device)
50 50
51 if (status != 0) { 51 if (status != 0) {
52 perror(applet_name); 52 perror(applet_name);
53 exit(FALSE); 53 exit(EXIT_FAILURE);
54 } 54 }
55} 55}
56 56
@@ -69,7 +69,7 @@ static void do_em_all()
69 } 69 }
70 } 70 }
71 endmntent(f); 71 endmntent(f);
72 exit(TRUE); 72 exit(EXIT_SUCCESS);
73} 73}
74 74
75 75
@@ -105,9 +105,8 @@ extern int swap_on_off_main(int argc, char **argv)
105 } 105 }
106 } 106 }
107 swap_enable_disable(*argv); 107 swap_enable_disable(*argv);
108 exit(TRUE); 108 return EXIT_SUCCESS;
109 109
110 usage_and_exit: 110 usage_and_exit:
111 usage((whichApp == SWAPON_APP) ? swapon_usage : swapoff_usage); 111 usage((whichApp == SWAPON_APP) ? swapon_usage : swapoff_usage);
112 exit(FALSE);
113} 112}