projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da36017
)
shared/util: use signed printf format for PIDs
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 22 Jan 2015 04:35:19 +0000
(23:35 -0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 22 Jan 2015 05:39:30 +0000
(
00:39
-0500)
gcc 5 started warning about this.
src/shared/util.h
patch
|
blob
|
history
diff --git
a/src/shared/util.h
b/src/shared/util.h
index
bb2c101
..
fa16d52
100644
(file)
--- 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 "%" PRI
u
32
+# define PID_FMT "%" PRI
i
32
#elif SIZEOF_PID_T == 2
-# define PID_FMT "%" PRI
u
16
+# define PID_FMT "%" PRI
i
16
#else
# error Unknown pid_t size
#endif