summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-01-25 17:19:14 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-01-25 17:19:14 -0500
commit45a85a5a6dac68a7ccf0a6ed5c0f3f67553d57cf (patch)
tree378c660ee2b701fc69a72dcf937ebdd720f4c563
parentdc4537595ae7f5f434e32e0b41536d52ec4bef95 (diff)
src/shared/util.h: further cleanup PID_FMT
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--src/shared/util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index a6ac7ebe42..e9d031989c 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -38,12 +38,13 @@
#include "config.h"
#if SIZEOF_PID_T == 4
-# define PID_FMT "%" PRIi32
+# define PID_PRI PRIi32
#elif SIZEOF_PID_T == 2
-# define PID_FMT "%" PRIi16
+# define PID_PRI PRIi16
#else
# error Unknown pid_t size
#endif
+#define PID_FMT "%" PID_PRI
#if SIZEOF_UID_T == 4
# define UID_FMT "%" PRIu32