diff options
Diffstat (limited to 'util-linux/ipcrm.c')
-rw-r--r-- | util-linux/ipcrm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util-linux/ipcrm.c b/util-linux/ipcrm.c index 9e18752a3..f4abf6839 100644 --- a/util-linux/ipcrm.c +++ b/util-linux/ipcrm.c | |||
@@ -94,7 +94,7 @@ remove_ids(type_id type, int argc, char **argv) { | |||
94 | case MSG: | 94 | case MSG: |
95 | ret = msgctl (id, IPC_RMID, NULL); | 95 | ret = msgctl (id, IPC_RMID, NULL); |
96 | break; | 96 | break; |
97 | 97 | ||
98 | case SHM: | 98 | case SHM: |
99 | ret = shmctl (id, IPC_RMID, NULL); | 99 | ret = shmctl (id, IPC_RMID, NULL); |
100 | break; | 100 | break; |
@@ -109,7 +109,7 @@ remove_ids(type_id type, int argc, char **argv) { | |||
109 | argc--; | 109 | argc--; |
110 | argv++; | 110 | argv++; |
111 | } | 111 | } |
112 | 112 | ||
113 | return(nb_errors); | 113 | return(nb_errors); |
114 | } | 114 | } |
115 | 115 | ||
@@ -119,7 +119,7 @@ static int deprecated_main(int argc, char **argv) | |||
119 | bb_show_usage(); | 119 | bb_show_usage(); |
120 | bb_fflush_stdout_and_exit(1); | 120 | bb_fflush_stdout_and_exit(1); |
121 | } | 121 | } |
122 | 122 | ||
123 | if (!strcmp(argv[1], "shm")) { | 123 | if (!strcmp(argv[1], "shm")) { |
124 | if (remove_ids(SHM, argc-2, &argv[2])) | 124 | if (remove_ids(SHM, argc-2, &argv[2])) |
125 | bb_fflush_stdout_and_exit(1); | 125 | bb_fflush_stdout_and_exit(1); |
@@ -127,7 +127,7 @@ static int deprecated_main(int argc, char **argv) | |||
127 | else if (!strcmp(argv[1], "msg")) { | 127 | else if (!strcmp(argv[1], "msg")) { |
128 | if (remove_ids(MSG, argc-2, &argv[2])) | 128 | if (remove_ids(MSG, argc-2, &argv[2])) |
129 | bb_fflush_stdout_and_exit(1); | 129 | bb_fflush_stdout_and_exit(1); |
130 | } | 130 | } |
131 | else if (!strcmp(argv[1], "sem")) { | 131 | else if (!strcmp(argv[1], "sem")) { |
132 | if (remove_ids(SEM, argc-2, &argv[2])) | 132 | if (remove_ids(SEM, argc-2, &argv[2])) |
133 | bb_fflush_stdout_and_exit(1); | 133 | bb_fflush_stdout_and_exit(1); |
@@ -228,7 +228,7 @@ int ipcrm_main(int argc, char **argv) | |||
228 | } | 228 | } |
229 | 229 | ||
230 | result = ((c == 'q') ? msgctl(id, IPC_RMID, NULL) : | 230 | result = ((c == 'q') ? msgctl(id, IPC_RMID, NULL) : |
231 | (c == 'm') ? shmctl(id, IPC_RMID, NULL) : | 231 | (c == 'm') ? shmctl(id, IPC_RMID, NULL) : |
232 | semctl(id, 0, IPC_RMID, arg)); | 232 | semctl(id, 0, IPC_RMID, arg)); |
233 | 233 | ||
234 | if (result < 0) { | 234 | if (result < 0) { |