netif-util: rename link_get_type_string() -> net_get_type_string()

This commit is contained in:
Yu Watanabe
2021-11-09 08:24:10 +09:00
parent b5cc5591fa
commit 4eef6fad31
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -846,7 +846,7 @@ static int list_links(int argc, char *argv[], void *userdata) {
setup_state = strdup("unmanaged");
setup_state_to_color(setup_state, &on_color_setup, NULL);
r = link_get_type_string(links[i].sd_device, links[i].iftype, &t);
r = net_get_type_string(links[i].sd_device, links[i].iftype, &t);
if (r == -ENOMEM)
return log_oom();
@@ -1569,7 +1569,7 @@ static int link_status_one(
(void) sd_device_get_property_value(info->sd_device, "ID_MODEL", &model);
}
r = link_get_type_string(info->sd_device, info->iftype, &t);
r = net_get_type_string(info->sd_device, info->iftype, &t);
if (r == -ENOMEM)
return log_oom();