mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-29 21:47:05 +03:00
core: when parsing integers passed over the bus use int32_t, not int
sd-bus will return "i" integers as "int32_t", not "int". Now on all archs we care about that's the same, but we still should do this properly.
This commit is contained in:
parent
7f452159b8
commit
8d1dd6abe2
@ -1037,7 +1037,7 @@ int bus_exec_context_set_transient_property(
|
||||
|
||||
return 1;
|
||||
} else if (streq(name, "SyslogLevel")) {
|
||||
int level;
|
||||
int32_t level;
|
||||
|
||||
r = sd_bus_message_read(message, "i", &level);
|
||||
if (r < 0)
|
||||
@ -1053,7 +1053,7 @@ int bus_exec_context_set_transient_property(
|
||||
|
||||
return 1;
|
||||
} else if (streq(name, "SyslogFacility")) {
|
||||
int facility;
|
||||
int32_t facility;
|
||||
|
||||
r = sd_bus_message_read(message, "i", &facility);
|
||||
if (r < 0)
|
||||
@ -1069,7 +1069,7 @@ int bus_exec_context_set_transient_property(
|
||||
|
||||
return 1;
|
||||
} else if (streq(name, "Nice")) {
|
||||
int n;
|
||||
int32_t n;
|
||||
|
||||
r = sd_bus_message_read(message, "i", &n);
|
||||
if (r < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user