summaryrefslogtreecommitdiff
path: root/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'dev.c')
-rw-r--r--dev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev.c b/dev.c
index 5bbac71..9c7af15 100644
--- a/dev.c
+++ b/dev.c
@@ -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);