summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-21 23:47:37 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-22 00:39:30 -0500
commit8facc3498ed037f842891ff55d1f60fe834f4ba0 (patch)
treeb0bfe51b9c233f985e6a17539b443f76ae413f0f /src/shared
parent213c305a2ff44c4b2ea7d0c96dd64be010ac797d (diff)
Fix some format strings for enums, they are signed
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index fa16d5252..2d03ac8fd 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -380,7 +380,7 @@ static inline uint32_t random_u32(void) {
if (!s) \
return log_oom(); \
} else { \
- r = asprintf(&s, "%u", i); \
+ r = asprintf(&s, "%i", i); \
if (r < 0) \
return log_oom(); \
} \