X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Ftimedate%2Ftimedated.c;h=e068724903f57bd85758c77f919cdd3e95b1e079;hp=16fffd08440cade294b4d9681c7fd568f5df44fe;hb=574d5f2dfc25226afc718aa5ba1a145fe5cad221;hpb=86e7b6e3f61e2a0d2395d7f2cc28e8f9199710e7 diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 16fffd084..e06872490 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -275,7 +275,7 @@ static int write_data_local_rtc(void) { } } label_init("/etc"); - r = write_one_line_file_atomic_label("/etc/adjtime", w); + r = write_string_file_atomic_label("/etc/adjtime", w); free(w); return r; @@ -367,8 +367,6 @@ static int read_ntp(DBusConnection *bus) { goto finish; } - if (reply) - dbus_message_unref(reply); reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error); if (!reply) { if (streq(error.name, "org.freedesktop.DBus.Error.FileNotFound")) { @@ -450,8 +448,6 @@ static int start_ntp(DBusConnection *bus, DBusError *error) { goto finish; } - if (reply) - dbus_message_unref(reply); reply = dbus_connection_send_with_reply_and_block(bus, m, -1, error); if (!reply) { if (streq(error->name, "org.freedesktop.DBus.Error.FileNotFound") || @@ -540,8 +536,6 @@ static int enable_ntp(DBusConnection *bus, DBusError *error) { } } - if (reply) - dbus_message_unref(reply); reply = dbus_connection_send_with_reply_and_block(bus, m, -1, error); if (!reply) { if (streq(error->name, "org.freedesktop.DBus.Error.FileNotFound")) {