diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-04 23:31:58 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-04 23:31:58 +0100 |
commit | 31f45c1b369bee73843f7d791313423997618448 (patch) | |
tree | fa9f646727563392e34c9065d2cb3a46c5c731d0 /util-linux/ipcs.c | |
parent | 286b33721d5f6afd615f752ea83bbd72658c6bb9 (diff) | |
download | busybox-w32-31f45c1b369bee73843f7d791313423997618448.tar.gz busybox-w32-31f45c1b369bee73843f7d791313423997618448.tar.bz2 busybox-w32-31f45c1b369bee73843f7d791313423997618448.zip |
libbb: factor out fflush_stdout_and_exit(EXIT_SUCCESS)
function old new delta
fflush_stdout_and_exit_SUCCESS - 7 +7
xxd_main 890 888 -2
vlock_main 353 351 -2
uuencode_main 318 316 -2
uniq_main 427 425 -2
uname_main 250 248 -2
sort_main 853 851 -2
shuf_main 500 498 -2
route_main 238 236 -2
readlink_main 113 111 -2
nice_main 156 154 -2
last_main 957 955 -2
ipcs_main 960 958 -2
env_main 209 207 -2
chrt_main 464 462 -2
cal_main 921 919 -2
baseNUM_main 650 648 -2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/16 up/down: 7/-32) Total: -25 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/ipcs.c')
-rw-r--r-- | util-linux/ipcs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c index ef2529c05..5973cbf57 100644 --- a/util-linux/ipcs.c +++ b/util-linux/ipcs.c | |||
@@ -600,15 +600,15 @@ int ipcs_main(int argc UNUSED_PARAM, char **argv) | |||
600 | id = xatoi(opt_i); | 600 | id = xatoi(opt_i); |
601 | if (opt & flag_shm) { | 601 | if (opt & flag_shm) { |
602 | print_shm(id); | 602 | print_shm(id); |
603 | fflush_stdout_and_exit(EXIT_SUCCESS); | 603 | fflush_stdout_and_exit_SUCCESS(); |
604 | } | 604 | } |
605 | if (opt & flag_sem) { | 605 | if (opt & flag_sem) { |
606 | print_sem(id); | 606 | print_sem(id); |
607 | fflush_stdout_and_exit(EXIT_SUCCESS); | 607 | fflush_stdout_and_exit_SUCCESS(); |
608 | } | 608 | } |
609 | if (opt & flag_msg) { | 609 | if (opt & flag_msg) { |
610 | print_msg(id); | 610 | print_msg(id); |
611 | fflush_stdout_and_exit(EXIT_SUCCESS); | 611 | fflush_stdout_and_exit_SUCCESS(); |
612 | } | 612 | } |
613 | bb_show_usage(); | 613 | bb_show_usage(); |
614 | } | 614 | } |
@@ -633,5 +633,5 @@ int ipcs_main(int argc UNUSED_PARAM, char **argv) | |||
633 | do_sem(format); | 633 | do_sem(format); |
634 | bb_putchar('\n'); | 634 | bb_putchar('\n'); |
635 | } | 635 | } |
636 | fflush_stdout_and_exit(EXIT_SUCCESS); | 636 | fflush_stdout_and_exit_SUCCESS(); |
637 | } | 637 | } |