tree-wide: add a space after (void)
This commit is contained in:
parent
052a85d188
commit
db2f8a2e8a
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue