summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcutils.c
diff options
context:
space:
mode:
authorKarel Zak2012-12-20 19:52:16 +0100
committerKarel Zak2012-12-20 19:52:16 +0100
commit278e7203fa198b3864095c867800218ffe12539a (patch)
tree785565c3c618f61e7e1e05778ed88915e0039511 /sys-utils/ipcutils.c
parenthwclock: fix compiler warning (diff)
downloadkernel-qcow2-util-linux-278e7203fa198b3864095c867800218ffe12539a.tar.gz
kernel-qcow2-util-linux-278e7203fa198b3864095c867800218ffe12539a.tar.xz
kernel-qcow2-util-linux-278e7203fa198b3864095c867800218ffe12539a.zip
ipcs: fix compiler warnings, use 64bit time
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/ipcutils.c')
-rw-r--r--sys-utils/ipcutils.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-utils/ipcutils.c b/sys-utils/ipcutils.c
index d81ca2063..0cac49ef4 100644
--- a/sys-utils/ipcutils.c
+++ b/sys-utils/ipcutils.c
@@ -112,7 +112,7 @@ int ipc_shm_get_info(int id, struct shm_data **shmds)
while (feof(f) == 0) {
if (fscanf(f,
"%d %d %o %"SCNu64 " %u %u "
- "%"SCNu64 " %u %u %u %u %"SCNu64 " %"SCNu64 " %"SCNu64
+ "%"SCNu64 " %u %u %u %u %"SCNi64 " %"SCNi64 " %"SCNi64
" %"SCNu64 " %"SCNu64 "\n",
&p->shm_perm.key,
&p->shm_perm.id,
@@ -263,7 +263,8 @@ int ipc_sem_get_info(int id, struct sem_data **semds)
while (feof(f) == 0) {
if (fscanf(f,
- "%d %d %o %" SCNu64 " %u %u %u %u %" SCNu64 " %" SCNu64 "\n",
+ "%d %d %o %" SCNu64 " %u %u %u %u %"
+ SCNi64 " %" SCNi64 "\n",
&p->sem_perm.key,
&p->sem_perm.id,
&p->sem_perm.mode,
@@ -376,7 +377,8 @@ int ipc_msg_get_info(int id, struct msg_data **msgds)
while (feof(f) == 0) {
if (fscanf(f,
- "%d %d %o %" SCNu64 " %" SCNu64 " %u %u %u %u %u %u %" SCNu64 " %" SCNu64 " %" SCNu64 "\n",
+ "%d %d %o %" SCNu64 " %" SCNu64
+ " %u %u %u %u %u %u %" SCNi64 " %" SCNi64 " %" SCNi64 "\n",
&p->msg_perm.key,
&p->msg_perm.id,
&p->msg_perm.mode,