diff options
author | Tim Riker | 2006-01-25 00:08:53 +0000 |
---|---|---|
committer | Tim Riker | 2006-01-25 00:08:53 +0000 |
commit | c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4 (patch) | |
tree | 5f329b7d0c7f20ecced0dc7581a9ba6dc720d965 /util-linux/ipcrm.c | |
parent | f64ff682a3d58dbb627e760e6fe1ec21d9ccdf61 (diff) | |
download | busybox-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.zip busybox-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.gz |
just whitespace
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 9e18752..f4abf68 100644 --- a/util-linux/ipcrm.c +++ b/util-linux/ipcrm.c @@ -94,7 +94,7 @@ remove_ids(type_id type, int argc, char **argv) { case MSG: ret = msgctl (id, IPC_RMID, NULL); break; - + case SHM: ret = shmctl (id, IPC_RMID, NULL); break; @@ -109,7 +109,7 @@ remove_ids(type_id type, int argc, char **argv) { argc--; argv++; } - + return(nb_errors); } @@ -119,7 +119,7 @@ static int deprecated_main(int argc, char **argv) bb_show_usage(); bb_fflush_stdout_and_exit(1); } - + if (!strcmp(argv[1], "shm")) { if (remove_ids(SHM, argc-2, &argv[2])) bb_fflush_stdout_and_exit(1); @@ -127,7 +127,7 @@ static int deprecated_main(int argc, char **argv) else if (!strcmp(argv[1], "msg")) { if (remove_ids(MSG, argc-2, &argv[2])) bb_fflush_stdout_and_exit(1); - } + } else if (!strcmp(argv[1], "sem")) { if (remove_ids(SEM, argc-2, &argv[2])) bb_fflush_stdout_and_exit(1); @@ -228,7 +228,7 @@ int ipcrm_main(int argc, char **argv) } result = ((c == 'q') ? msgctl(id, IPC_RMID, NULL) : - (c == 'm') ? shmctl(id, IPC_RMID, NULL) : + (c == 'm') ? shmctl(id, IPC_RMID, NULL) : semctl(id, 0, IPC_RMID, arg)); if (result < 0) { |