diff options
-rw-r--r-- | dev.c | 5 | ||||
-rw-r--r-- | dev.h | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -112,9 +112,10 @@ int device_address(const char *ifname, int af, struct sockaddr_storage *ss) return ret; } -int device_mtu(const char *ifname) +size_t device_mtu(const char *ifname) { - int ret, sock, mtu = 0; + size_t mtu = 0; + int ret, sock; struct ifreq ifr; sock = af_socket(AF_INET); @@ -4,7 +4,7 @@ #include <sys/socket.h> #include "built_in.h" -extern int device_mtu(const char *ifname); +extern size_t device_mtu(const char *ifname); extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss); extern int device_ifindex(const char *ifname); extern int device_type(const char *ifname); |