From 9afdac17dcc8956fd795797bfc5b6e1c09285342 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周日, 08 3月 2020 21:27:16 +0800 Subject: [PATCH] Issues #14 and #6 --- src/library/os/linux/network.cpp | 20 -------------------- 1 files changed, 0 insertions(+), 20 deletions(-) diff --git a/src/library/os/linux/network.cpp b/src/library/os/linux/network.cpp index e456989..475463b 100644 --- a/src/library/os/linux/network.cpp +++ b/src/library/os/linux/network.cpp @@ -23,7 +23,6 @@ #include <ifaddrs.h> #include <linux/if_link.h> #include <netpacket/packet.h> -#include <string.h> #include <stdio.h> #include <unordered_map> @@ -35,25 +34,6 @@ namespace os { using namespace std; -/** - * - * @param ifnames - * @param ifname - * @param ifnames_max - * @return - */ - -static int ifname_position(char *ifnames, char *ifname, int ifnames_max) { - int i, position; - position = -1; - for (i = 0; i < ifnames_max; i++) { - if (strcmp(ifname, &ifnames[i * NI_MAXHOST]) == 0) { - position = i; - break; - } - } - return position; -} /** * -- Gitblit v1.9.1