aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk.c4
-rw-r--r--util-linux/ipcrm.c2
-rw-r--r--util-linux/ipcs.c8
3 files changed, 7 insertions, 7 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 50ab48dab..5871a065a 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -394,7 +394,7 @@ read_line(const char *prompt)
sz = read_line_input(prompt, line_buffer, sizeof(line_buffer), NULL);
if (sz <= 0)
- exit(0); /* Ctrl-D or Ctrl-C */
+ exit(EXIT_SUCCESS); /* Ctrl-D or Ctrl-C */
if (line_buffer[sz-1] == '\n')
line_buffer[--sz] = '\0';
@@ -2620,7 +2620,7 @@ xselect(void)
if (ENABLE_FEATURE_CLEAN_UP)
close_dev_fd();
bb_putchar('\n');
- exit(0);
+ exit(EXIT_SUCCESS);
case 'r':
return;
case 's':
diff --git a/util-linux/ipcrm.c b/util-linux/ipcrm.c
index 8d5f63c0f..5dcda859a 100644
--- a/util-linux/ipcrm.c
+++ b/util-linux/ipcrm.c
@@ -111,7 +111,7 @@ int ipcrm_main(int argc, char **argv)
what = SEM;
if (remove_ids(what, argc-2, &argv[2]))
- fflush_stdout_and_exit(1);
+ fflush_stdout_and_exit(EXIT_FAILURE);
printf("resource(s) deleted\n");
return 0;
}
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c
index 4b5c597e5..111defa1e 100644
--- a/util-linux/ipcs.c
+++ b/util-linux/ipcs.c
@@ -588,15 +588,15 @@ int ipcs_main(int argc ATTRIBUTE_UNUSED, char **argv)
if (flags & flag_print) {
if (flags & flag_shm) {
print_shm(id);
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}
if (flags & flag_sem) {
print_sem(id);
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}
if (flags & flag_msg) {
print_msg(id);
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}
bb_show_usage();
}
@@ -617,5 +617,5 @@ int ipcs_main(int argc ATTRIBUTE_UNUSED, char **argv)
do_msg();
bb_putchar('\n');
}
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}