summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcutils.h
diff options
context:
space:
mode:
authorKarel Zak2014-03-11 11:22:07 +0100
committerKarel Zak2014-03-11 11:22:07 +0100
commit873e7a59d7be7db56573eef271d23867e3dfa47b (patch)
tree290719f5357edc424b93a4711b05fd65fe2193c8 /sys-utils/ipcutils.h
parentlib/colors: support <name>.enable too (diff)
downloadkernel-qcow2-util-linux-873e7a59d7be7db56573eef271d23867e3dfa47b.tar.gz
kernel-qcow2-util-linux-873e7a59d7be7db56573eef271d23867e3dfa47b.tar.xz
kernel-qcow2-util-linux-873e7a59d7be7db56573eef271d23867e3dfa47b.zip
ipcs: fix size_t overflow
Addresses: https://github.com/karelzak/util-linux/issues/51 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/ipcutils.h')
-rw-r--r--sys-utils/ipcutils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-utils/ipcutils.h b/sys-utils/ipcutils.h
index d2e5972dd..26fbbcf4d 100644
--- a/sys-utils/ipcutils.h
+++ b/sys-utils/ipcutils.h
@@ -12,6 +12,7 @@
#include <unistd.h>
#include <grp.h>
#include <pwd.h>
+#include <stdint.h>
/*
* SHM_DEST and SHM_LOCKED are defined in kernel headers, but inside
@@ -118,7 +119,7 @@ struct ipc_stat {
};
extern void ipc_print_perms(FILE *f, struct ipc_stat *is);
-extern void ipc_print_size(int unit, char *msg, size_t size, const char *end, int width);
+extern void ipc_print_size(int unit, char *msg, uint64_t size, const char *end, int width);
/* See 'struct shmid_kernel' in kernel sources
*/