From: Yu Watanabe Date: Tue, 3 Jul 2018 05:36:15 +0000 (+0900) Subject: tree-wide: add a space after (void) X-Git-Tag: v240~1009 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=commitdiff_plain;h=db2f8a2e8aae680cb98c0e7da9e0533e0aa8021f tree-wide: add a space after (void) --- diff --git a/src/libsystemd/sd-device/device-enumerator.c b/src/libsystemd/sd-device/device-enumerator.c index ee71fa88104..ba336364d5e 100644 --- a/src/libsystemd/sd-device/device-enumerator.c +++ b/src/libsystemd/sd-device/device-enumerator.c @@ -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) { diff --git a/src/libsystemd/sd-device/device-private.c b/src/libsystemd/sd-device/device-private.c index d1f1b085acb..25964104333 100644 --- a/src/libsystemd/sd-device/device-private.c +++ b/src/libsystemd/sd-device/device-private.c @@ -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); diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c index be29053f8c1..af29e74efa9 100644 --- a/src/libsystemd/sd-device/sd-device.c +++ b/src/libsystemd/sd-device/sd-device.c @@ -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; } diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 4afcf843bd3..b16b13178a2 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -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;