summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-25 17:07:21 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-01-25 17:07:21 -0500
commit2ecc6ef9a20fa44978db0c151ed8a59e8e529716 (patch)
treeb3f028c98c0d82e06414d293a90a9dd97c5397a2 /src/shared/util.h
parentd08c44759ababc16e6ea53ca2477e73e7286e1b5 (diff)
shared/util: use signed printf format for PIDs
gcc 5 started warning about this. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index c672d8dd41..010a636027 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -38,9 +38,9 @@
#include "config.h"
#if SIZEOF_PID_T == 4
-# define PID_FMT "%" PRIu32
+# define PID_FMT "%" PRIi32
#elif SIZEOF_PID_T == 2
-# define PID_FMT "%" PRIu16
+# define PID_FMT "%" PRIi16
#else
# error Unknown pid_t size
#endif