From 45a85a5a6dac68a7ccf0a6ed5c0f3f67553d57cf Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sun, 25 Jan 2015 17:19:14 -0500 Subject: src/shared/util.h: further cleanup PID_FMT Signed-off-by: Anthony G. Basile --- src/shared/util.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-54-g00ecf