diff options
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 078cf1f0cf..a9390b8689 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -16,7 +16,6 @@ #include "sd-network.h" #include "alloc-util.h" -#include "arphrd-list.h" #include "bus-common-errors.h" #include "bus-error.h" #include "bus-util.h" @@ -35,6 +34,7 @@ #include "macro.h" #include "main-func.h" #include "netlink-util.h" +#include "network-internal.h" #include "pager.h" #include "parse-util.h" #include "pretty-print.h" @@ -66,27 +66,6 @@ static bool arg_stats = false; static bool arg_full = false; static unsigned arg_lines = 10; -static char *link_get_type_string(unsigned short iftype, sd_device *d) { - const char *t, *devtype; - char *p; - - if (d && - sd_device_get_devtype(d, &devtype) >= 0 && - !isempty(devtype)) - return strdup(devtype); - - t = arphrd_to_name(iftype); - if (!t) - return NULL; - - p = strdup(t); - if (!p) - return NULL; - - ascii_strlower(p); - return p; -} - static void operational_state_to_color(const char *name, const char *state, const char **on, const char **off) { assert(on); assert(off); |