]> err.no Git - systemd/commitdiff
drop unnecessary suffix NULs as gcc adds them anyway
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Mar 2011 18:48:02 +0000 (19:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Mar 2011 18:48:02 +0000 (19:48 +0100)
12 files changed:
TODO
src/dbus-device.c
src/dbus-job.c
src/dbus-mount.c
src/dbus-service.c
src/dbus-socket.c
src/dbus-swap.c
src/dbus-timer.c
src/dbus-unit.c
src/dbus.c
src/mount-setup.c
src/util.c

diff --git a/TODO b/TODO
index ad844d5cda8dc99d55dc06ec5c027ec05a34c955..237ba7b2a7feafdc7d4a4f110ca520892c19ee33 100644 (file)
--- a/TODO
+++ b/TODO
@@ -22,6 +22,10 @@ F15:
 
 * drop SIGHUP handling from rsyslog.service upstream
 
+* teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
+
+* save/restore tool for SysV as requested by FPC
+
 Features:
 
 * consider services with no [Install] section and stored in /lib enabled by "systemctl is-enabled"
index aafe5d61fa010150533efd1a96f78ebc17b5640a..9b2861de4548cb40678cbb372d0e541cd024eca0 100644 (file)
@@ -40,8 +40,7 @@
 const char bus_device_interface[] _introspect_("Device") = BUS_DEVICE_INTERFACE;
 
 const char bus_device_invalidating_properties[] =
-        "SysFSPath\0"
-        "\0";
+        "SysFSPath\0";
 
 DBusHandlerResult bus_device_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) {
         const BusProperty properties[] = {
index e90d585b63d8e1d6657c61fc9a288d1a0c86a8a8..95367c4226afb1a610fcb716eb9c4edaed9ae31d 100644 (file)
@@ -46,8 +46,7 @@
 const char bus_job_interface[] _introspect_("Job") = BUS_JOB_INTERFACE;
 
 #define INVALIDATING_PROPERTIES                 \
-        "State\0"                               \
-        "\0"                                    \
+        "State\0"
 
 static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_job_append_state, job_state, JobState);
 static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_job_append_type, job_type, JobType);
index fa319febd59cc761506ce8db7505f3337a1f50c5..e3a793d194a54cf83792586d5d6011743266803a 100644 (file)
@@ -59,8 +59,7 @@ const char bus_mount_invalidating_properties[] =
         "ExecMount\0"
         "ExecUnmount\0"
         "ExecRemount\0"
-        "ControlPID\0"
-        "\0";
+        "ControlPID\0";
 
 static int bus_mount_append_what(Manager *n, DBusMessageIter *i, const char *property, void *data) {
         Mount *m = data;
index 93fc2a3b684d8aa467121cd2ea7f21e6f202105c..1b6c7f47b4daae1f24b0cd5ac52cb14ae5b92fac 100644 (file)
@@ -102,8 +102,7 @@ const char bus_service_invalidating_properties[] =
         "ExecMain\0"
         "MainPID\0"
         "ControlPID\0"
-        "StatusText\0"
-        "\0";
+        "StatusText\0";
 
 static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_service_append_type, service_type, ServiceType);
 static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_service_append_restart, service_restart, ServiceRestart);
index a9cb1c38f8b8c0c604a0d9283b4229683fae4653..3fda76db865b753cba33443eb0d84f7f236cfb13 100644 (file)
@@ -73,12 +73,12 @@ const char bus_socket_invalidating_properties[] =
         "ExecStopPost\0"
         "ControlPID\0"
         "NAccepted\0"
-        "NConnections\0"
-        "\0";
+        "NConnections\0";
 
 static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_socket_append_bind_ipv6_only, socket_address_bind_ipv6_only, SocketAddressBindIPv6Only);
 
 DBusHandlerResult bus_socket_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) {
+
         const BusProperty properties[] = {
                 BUS_UNIT_PROPERTIES,
                 { "org.freedesktop.systemd1.Socket", "BindIPv6Only",   bus_socket_append_bind_ipv6_only, "s", &u->socket.bind_ipv6_only  },
index 06acb22dccff33816f74604bab37ba47615d2d44..723cd64a8217f8cc64c0136c686d1eb9edc13b27 100644 (file)
@@ -54,8 +54,7 @@ const char bus_swap_invalidating_properties[] =
         "Priority\0"
         "ExecActivate\0"
         "ExecDeactivate\0"
-        "ControlPID\0"
-        "\0";
+        "ControlPID\0";
 
 static int bus_swap_append_priority(Manager *m, DBusMessageIter *i, const char *property, void *data) {
         Swap *s = data;
index f4c23e0ea790cee7b5875cb02025ecfe492ad83b..eed05e6991d5c1888bd1820b9e0fd53088398ed5 100644 (file)
@@ -46,8 +46,7 @@ const char bus_timer_interface[] _introspect_("Timer") = BUS_TIMER_INTERFACE;
 
 const char bus_timer_invalidating_properties[] =
         "Timers\0"
-        "NextElapseUSec\0"
-        "\0";
+        "NextElapseUSec\0";
 
 static int bus_timer_append_timers(Manager *m, DBusMessageIter *i, const char *property, void *data) {
         Timer *p = data;
index cd6ad843f97b04d4f8fac6b995915a96532861f4..52e8599e7c52d180efdd3b5b28f31b75b345d77c 100644 (file)
@@ -37,8 +37,7 @@ const char bus_unit_interface[] _introspect_("Unit") = BUS_UNIT_INTERFACE;
         "ActiveExitTimestamp\0"                 \
         "InactiveEnterTimestamp\0"              \
         "Job\0"                                 \
-        "NeedDaemonReload\0"                    \
-        "\0"
+        "NeedDaemonReload\0"
 
 int bus_unit_append_names(Manager *m, DBusMessageIter *i, const char *property, void *data) {
         char *t;
index 5a4750d6b9dd6750a2c91b8d002e63de48f62c85..dae5f9ec4cec082d603bc5fff476bd16cd61e486 100644 (file)
@@ -1316,6 +1316,7 @@ DBusHandlerResult bus_default_message_handler(Manager *m, DBusConnection *c, DBu
 
                 if (!dbus_message_iter_close_container(&iter, &sub))
                         goto oom;
+
         } else if (dbus_message_is_method_call(message, "org.freedesktop.DBus.Properties", "Set") && properties) {
                 const char *interface, *property;
                 DBusMessageIter iter;
index f08eeb162ead98886f0d3a7093a36b6d52f7fa53..09ee07f820d887464b969b29d675b3a904e6d02c 100644 (file)
@@ -228,8 +228,7 @@ int mount_setup(void) {
                 "/proc/self/fd\0"    "/dev/fd\0"
                 "/proc/self/fd/0\0"  "/dev/stdin\0"
                 "/proc/self/fd/1\0"  "/dev/stdout\0"
-                "/proc/self/fd/2\0"  "/dev/stderr\0"
-                "\0";
+                "/proc/self/fd/2\0"  "/dev/stderr\0";
 
         int r;
         unsigned i;
index 96cf6605f3c5f8b2335c03517ecbaa0b9c8832ac..4acb3c305c0f7d612573558e7104b98895ad7ec2 100644 (file)
@@ -3820,8 +3820,7 @@ int detect_vm(const char **id) {
                 "Microsoft Corporation\0" "microsoft\0"
                 "innotek GmbH\0"          "oracle\0"
                 "Xen\0"                   "xen\0"
-                "Bochs\0"                 "bochs\0"
-                "\0";
+                "Bochs\0"                 "bochs\0";
 
         static const char cpuid_vendor_table[] =
                 "XenVMMXenVMM\0"          "xen\0"
@@ -3829,8 +3828,7 @@ int detect_vm(const char **id) {
                 /* http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 */
                 "VMwareVMware\0"          "vmware\0"
                 /* http://msdn.microsoft.com/en-us/library/ff542428.aspx */
-                "Microsoft Hv\0"          "microsoft\0"
-                "\0";
+                "Microsoft Hv\0"          "microsoft\0";
 
         uint32_t eax, ecx;
         union {