summaryrefslogtreecommitdiff
path: root/src/hostname/hostnamed.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-07 02:03:10 +0100
committerKay Sievers <kay@vrfy.org>2013-11-07 02:05:57 +0100
commit102d8f8169427cb68cdebf5ee0f0e07788e9c2b2 (patch)
tree37c502ff4285790da20ab9c8d550aed8daceb05b /src/hostname/hostnamed.c
parentba341e7c3c18e81a6faa58883e178a60af317a40 (diff)
consistently use "int" when retrieving "bool" from bus messages
Diffstat (limited to 'src/hostname/hostnamed.c')
-rw-r--r--src/hostname/hostnamed.c6
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;