diff options
Diffstat (limited to 'src/hostnamed.c')
-rw-r--r-- | src/hostnamed.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hostnamed.c b/src/hostnamed.c index 9e8825da75..f3b2c94173 100644 --- a/src/hostnamed.c +++ b/src/hostnamed.c @@ -31,6 +31,7 @@ #include "dbus-common.h" #include "polkit.h" #include "def.h" +#include "virt.h" #define INTERFACE \ " <interface name=\"org.freedesktop.hostname1\">\n" \ @@ -233,7 +234,7 @@ static int write_data_other(void) { assert(name[p]); if (isempty(data[p])) { - l = strv_env_unset(l, name[p]); + strv_env_unset(l, name[p]); continue; } @@ -396,7 +397,7 @@ static DBusHandlerResult hostname_message_handler( return bus_send_error_reply(connection, message, NULL, r); } - log_info("Changed static host name to '%s'", strempty(data[PROP_HOSTNAME])); + log_info("Changed static host name to '%s'", strempty(data[PROP_STATIC_HOSTNAME])); changed = bus_properties_changed_new( "/org/freedesktop/hostname1", |