aboutsummaryrefslogtreecommitdiff
path: root/swaponoff.c
diff options
context:
space:
mode:
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}