aboutsummaryrefslogtreecommitdiff
path: root/util-linux/ipcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/ipcs.c')
-rw-r--r--util-linux/ipcs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c
index 4863a5c29..df86cfb9d 100644
--- a/util-linux/ipcs.c
+++ b/util-linux/ipcs.c
@@ -467,7 +467,7 @@ static void print_shm(int shmid)
467 struct ipc_perm *ipcp = &shmds.shm_perm; 467 struct ipc_perm *ipcp = &shmds.shm_perm;
468 468
469 if (shmctl(shmid, IPC_STAT, &shmds) == -1) { 469 if (shmctl(shmid, IPC_STAT, &shmds) == -1) {
470 bb_perror_msg("shmctl"); 470 bb_simple_perror_msg("shmctl");
471 return; 471 return;
472 } 472 }
473 473
@@ -493,7 +493,7 @@ static void print_msg(int msqid)
493 struct ipc_perm *ipcp = &buf.msg_perm; 493 struct ipc_perm *ipcp = &buf.msg_perm;
494 494
495 if (msgctl(msqid, IPC_STAT, &buf) == -1) { 495 if (msgctl(msqid, IPC_STAT, &buf) == -1) {
496 bb_perror_msg("msgctl"); 496 bb_simple_perror_msg("msgctl");
497 return; 497 return;
498 } 498 }
499 499
@@ -527,7 +527,7 @@ static void print_sem(int semid)
527 527
528 arg.buf = &semds; 528 arg.buf = &semds;
529 if (semctl(semid, 0, IPC_STAT, arg)) { 529 if (semctl(semid, 0, IPC_STAT, arg)) {
530 bb_perror_msg("semctl"); 530 bb_simple_perror_msg("semctl");
531 return; 531 return;
532 } 532 }
533 533
@@ -555,7 +555,7 @@ static void print_sem(int semid)
555 zcnt = semctl(semid, i, GETZCNT, arg); 555 zcnt = semctl(semid, i, GETZCNT, arg);
556 pid = semctl(semid, i, GETPID, arg); 556 pid = semctl(semid, i, GETPID, arg);
557 if (val < 0 || ncnt < 0 || zcnt < 0 || pid < 0) { 557 if (val < 0 || ncnt < 0 || zcnt < 0 || pid < 0) {
558 bb_perror_msg_and_die("semctl"); 558 bb_simple_perror_msg_and_die("semctl");
559 } 559 }
560 printf("%-10u %-10d %-10d %-10d %-10d\n", i, val, ncnt, zcnt, pid); 560 printf("%-10u %-10d %-10d %-10d %-10d\n", i, val, ncnt, zcnt, pid);
561 } 561 }