mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-15 02:00:50 +00:00
shared/util: use signed printf format for PIDs
gcc 5 started warning about this.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user