summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-21 23:35:19 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-22 00:39:30 -0500
commit213c305a2ff44c4b2ea7d0c96dd64be010ac797d (patch)
tree1d3c5718b078855e0b0b63086baf097a7a06aa74 /src/shared
parentda36017e0565247ffad930314956c37c518ab805 (diff)
shared/util: use signed printf format for PIDs
gcc 5 started warning about this.
Diffstat (limited to 'src/shared')
-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 bb2c101569..fa16d52524 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -45,9 +45,9 @@
#include <sys/inotify.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