chiark / gitweb /
bus: remove explicit activator-specific flags, the kdbus supports it now
authorKay Sievers <kay@vrfy.org>
Thu, 12 Dec 2013 19:26:48 +0000 (20:26 +0100)
committerKay Sievers <kay@vrfy.org>
Thu, 12 Dec 2013 19:27:23 +0000 (20:27 +0100)
src/hostname/hostnamed.c
src/locale/localed.c
src/login/logind.c
src/machine/machined.c
src/timedate/timedated.c

index 36845c4..3f08d1c 100644 (file)
@@ -574,7 +574,7 @@ static int connect_bus(Context *c, sd_event *event, sd_bus **_bus) {
                 return r;
         }
 
                 return r;
         }
 
-        r = sd_bus_request_name(bus, "org.freedesktop.hostname1", SD_BUS_NAME_REPLACE_EXISTING);
+        r = sd_bus_request_name(bus, "org.freedesktop.hostname1", 0);
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;
index 54f2971..65318b6 100644 (file)
@@ -1094,7 +1094,7 @@ static int connect_bus(Context *c, sd_event *event, sd_bus **_bus) {
                 return r;
         }
 
                 return r;
         }
 
-        r = sd_bus_request_name(bus, "org.freedesktop.locale1", SD_BUS_NAME_REPLACE_EXISTING);
+        r = sd_bus_request_name(bus, "org.freedesktop.locale1", 0);
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;
index 29f5272..2226087 100644 (file)
@@ -727,7 +727,7 @@ static int manager_connect_bus(Manager *m) {
                 return r;
         }
 
                 return r;
         }
 
-        r = sd_bus_request_name(m->bus, "org.freedesktop.login1", SD_BUS_NAME_REPLACE_EXISTING);
+        r = sd_bus_request_name(m->bus, "org.freedesktop.login1", 0);
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;
index f695cfe..6550075 100644 (file)
@@ -219,7 +219,7 @@ static int manager_connect_bus(Manager *m) {
                 return r;
         }
 
                 return r;
         }
 
-        r = sd_bus_request_name(m->bus, "org.freedesktop.machine1", SD_BUS_NAME_REPLACE_EXISTING);
+        r = sd_bus_request_name(m->bus, "org.freedesktop.machine1", 0);
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;
index c1ceeee..37173a2 100644 (file)
@@ -791,7 +791,7 @@ static int connect_bus(Context *c, sd_event *event, sd_bus **_bus) {
                 return r;
         }
 
                 return r;
         }
 
-        r = sd_bus_request_name(bus, "org.freedesktop.timedate1", SD_BUS_NAME_REPLACE_EXISTING);
+        r = sd_bus_request_name(bus, "org.freedesktop.timedate1", 0);
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;
         if (r < 0) {
                 log_error("Failed to register name: %s", strerror(-r));
                 return r;