diff options
author | Kay Sievers <kay@vrfy.org> | 2013-11-07 02:03:10 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-11-07 02:05:57 +0100 |
commit | 102d8f8169427cb68cdebf5ee0f0e07788e9c2b2 (patch) | |
tree | 37c502ff4285790da20ab9c8d550aed8daceb05b /src/hostname | |
parent | ba341e7c3c18e81a6faa58883e178a60af317a40 (diff) |
consistently use "int" when retrieving "bool" from bus messages
Diffstat (limited to 'src/hostname')
-rw-r--r-- | src/hostname/hostnamed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 0854bc412f..35dccf8cb6 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -371,7 +371,7 @@ static int method_set_hostname(sd_bus *bus, sd_bus_message *m, void *userdata) { _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL; Context *c = userdata; const char *name; - unsigned interactive; + int interactive; char *h; int r; @@ -421,7 +421,7 @@ static int method_set_static_hostname(sd_bus *bus, sd_bus_message *m, void *user _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL; Context *c = userdata; const char *name; - unsigned interactive; + int interactive; int r; r = sd_bus_message_read(m, "sb", &name, &interactive); @@ -472,7 +472,7 @@ static int method_set_static_hostname(sd_bus *bus, sd_bus_message *m, void *user static int set_machine_info(Context *c, sd_bus *bus, sd_bus_message *m, int prop, sd_bus_message_handler_t cb) { _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL; - unsigned interactive; + int interactive; const char *name; int r; |