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) {
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);
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;
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)
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;
}
/* 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;
free(link->kind);
- (void)unlink(link->state_file);
+ (void) unlink(link->state_file);
free(link->state_file);
udev_device_unref(link->udev_device);
log_link_debug(link, "Link removed");
- (void)unlink(link->state_file);
+ (void) unlink(link->state_file);
link_unref(link);
return;