aboutsummaryrefslogtreecommitdiff
path: root/tests/ipc_msg.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-07-20 10:11:33 +0000
committerDmitry V. Levin <ldv@altlinux.org>2015-07-20 22:03:06 +0000
commit2370d53281e00bc99558b2bd8f0794b2e989caa4 (patch)
treeec781796779a1cbb2bad78b20fac4e17e5003ad6 /tests/ipc_msg.c
parent2f444dc87103fa11e1c111728cbb0b81b09dc0b9 (diff)
downloadstrace-2370d53281e00bc99558b2bd8f0794b2e989caa4.tar.gz
ipc.c: use printaddr and umove_or_printaddr
* ipc.c (sys_msgctl): Use printaddr. (tprint_msgbuf): New function. (tprint_msgsnd, tprint_msgrcv): Use it. (sys_msgrcv): Use umove_or_printaddr. (tprint_sembuf): Rename to tprint_sembuf_array. (tprint_sembuf): New function. (tprint_sembuf_array): Use it. (sys_semop, sys_semtimedop): Update callers. (sys_shmctl, sys_shmat, sys_shmdt): Use printaddr. (sys_mq_open, printmqattr): Use printaddr and umove_or_printaddr. * tests/ipc_msg.c (main): Update msgctl IPC_RMID regexp. * tests/ipc_shm.c (main): Update shmctl IPC_RMID regexp.
Diffstat (limited to 'tests/ipc_msg.c')
-rw-r--r--tests/ipc_msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ipc_msg.c b/tests/ipc_msg.c
index ed2bfd6c..12df6226 100644
--- a/tests/ipc_msg.c
+++ b/tests/ipc_msg.c
@@ -37,9 +37,9 @@ main(void)
rc = 0;
done:
- if (msgctl(id, IPC_RMID, 0) < 0)
+ if (msgctl(id, IPC_RMID, NULL) < 0)
return 1;
- printf("msgctl\\(%d, (IPC_64\\|)?IPC_RMID, 0\\) += 0\n", id);
+ printf("msgctl\\(%d, (IPC_64\\|)?IPC_RMID, NULL\\) += 0\n", id);
return rc;
fail: