summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-01-05 17:06:50 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-05 11:17:03 -0500
commit2047a15a17d9773cc87569b4176af72830a086eb (patch)
tree3797343c4a8a012bc46b3bf979fecfc29ff26411 /src
parent4bf7665c760bdd011cee3c5a9b03c8e109991241 (diff)
Fix format string mismatch introduced in ab9001a1
src/libsystemd-bus/sd-bus.c: In function 'sd_bus_open_user': src/libsystemd-bus/sd-bus.c:1104:25: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'long unsigned int' [-Wformat=] asprintf(&b->address, UNIX_USER_BUS_FMT, (unsigned long) getuid());
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-bus/sd-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
index c2f77a990f..7f3ecbf804 100644
--- a/src/libsystemd-bus/sd-bus.c
+++ b/src/libsystemd-bus/sd-bus.c
@@ -1101,7 +1101,7 @@ _public_ int sd_bus_open_user(sd_bus **ret) {
#ifdef ENABLE_KDBUS
asprintf(&b->address, KERNEL_USER_BUS_FMT ";" UNIX_USER_BUS_FMT, (unsigned long) getuid(), ee);
#else
- asprintf(&b->address, UNIX_USER_BUS_FMT, (unsigned long) getuid());
+ asprintf(&b->address, UNIX_USER_BUS_FMT, ee);
#endif
} else {
#ifdef ENABLE_KDBUS