]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: add a space after (void)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 3 Jul 2018 05:36:15 +0000 (14:36 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 3 Jul 2018 08:44:28 +0000 (10:44 +0200)
src/libsystemd/sd-device/device-enumerator.c
src/libsystemd/sd-device/device-private.c
src/libsystemd/sd-device/sd-device.c
src/network/networkd-link.c

index ee71fa881045cf4fff6c38a6d01cd3ad8904d536..ba336364d5eaf5249a9d4160d681ed6607d75b76 100644 (file)
@@ -479,7 +479,7 @@ static int enumerator_scan_dir_and_add_devices(sd_device_enumerator *enumerator,
                 if (!match_sysname(enumerator, dent->d_name))
                         continue;
 
-                (void)sprintf(syspath, "%s%s", path, dent->d_name);
+                (void) sprintf(syspath, "%s%s", path, dent->d_name);
 
                 k = sd_device_new_from_syspath(&device, syspath);
                 if (k < 0) {
index d1f1b085acb238a9dc5936b89648b9c3177d8468..2596410433336d892b526214727bb333636b867b 100644 (file)
@@ -425,7 +425,7 @@ static int device_amend(sd_device *device, const char *key, const char *value) {
                 FOREACH_WORD_SEPARATOR(word, l, value, ":", state) {
                         char tag[l + 1];
 
-                        (void)strncpy(tag, word, l);
+                        (void) strncpy(tag, word, l);
                         tag[l] = '\0';
 
                         r = device_add_tag(device, tag);
index be29053f8c17844375b8d27a3f92fe81d0ffa712..af29e74efa9ead62df9aa2680cb105d4f284532d 100644 (file)
@@ -647,7 +647,7 @@ _public_ int sd_device_new_from_device_id(sd_device **ret, const char *id) {
                 char subsys[PATH_MAX];
                 char *sysname;
 
-                (void)strscpy(subsys, sizeof(subsys), id + 1);
+                (void) strscpy(subsys, sizeof(subsys), id + 1);
                 sysname = strchr(subsys, ':');
                 if (!sysname)
                         return -EINVAL;
@@ -717,7 +717,7 @@ _public_ int sd_device_get_parent(sd_device *child, sd_device **ret) {
         if (!child->parent_set) {
                 child->parent_set = true;
 
-                (void)device_new_from_child(&child->parent, child);
+                (void) device_new_from_child(&child->parent, child);
         }
 
         if (!child->parent)
@@ -864,12 +864,12 @@ _public_ int sd_device_get_parent_with_subsystem_devtype(sd_device *child, const
                 const char *parent_subsystem = NULL;
                 const char *parent_devtype = NULL;
 
-                (void)sd_device_get_subsystem(parent, &parent_subsystem);
+                (void) sd_device_get_subsystem(parent, &parent_subsystem);
                 if (streq_ptr(parent_subsystem, subsystem)) {
                         if (!devtype)
                                 break;
 
-                        (void)sd_device_get_devtype(parent, &parent_devtype);
+                        (void) sd_device_get_devtype(parent, &parent_devtype);
                         if (streq_ptr(parent_devtype, devtype))
                                 break;
                 }
index 4afcf843bd3f58e5ab3af725304c3554a17a5a8d..b16b13178a2561323859ab633204cec65b31d410 100644 (file)
@@ -413,7 +413,7 @@ static int link_new(Manager *manager, sd_netlink_message *message, Link **ret) {
         /* check for link kind */
         r = sd_netlink_message_enter_container(message, IFLA_LINKINFO);
         if (r == 0) {
-                (void)sd_netlink_message_read_string(message, IFLA_INFO_KIND, &kind);
+                (void) sd_netlink_message_read_string(message, IFLA_INFO_KIND, &kind);
                 r = sd_netlink_message_exit_container(message);
                 if (r < 0)
                         return r;
@@ -537,7 +537,7 @@ static void link_free(Link *link) {
 
         free(link->kind);
 
-        (void)unlink(link->state_file);
+        (void) unlink(link->state_file);
         free(link->state_file);
 
         udev_device_unref(link->udev_device);
@@ -2257,7 +2257,7 @@ void link_drop(Link *link) {
 
         log_link_debug(link, "Link removed");
 
-        (void)unlink(link->state_file);
+        (void) unlink(link->state_file);
         link_unref(link);
 
         return;