mirror of
https://github.com/systemd/systemd.git
synced 2025-03-01 08:58:29 +03:00
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());
This commit is contained in:
parent
4bf7665c76
commit
2047a15a17
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user