summaryrefslogtreecommitdiff
path: root/util-linux/swaponoff.c
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 /util-linux/swaponoff.c
parentb558e76eb1ba173ce3501c3e13fb80f426a7faac (diff)
downloadbusybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.gz
busybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.bz2
busybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.zip
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'util-linux/swaponoff.c')
-rw-r--r--util-linux/swaponoff.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 4a1c8f93f..0ae0c36ee 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/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}