From ad32794751b4943f6743788a59a3979ef438a255 Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Tue, 20 Jan 2015 12:34:51 +0100 Subject: [PATCH] Fixed type --- src/dot1ag_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dot1ag_eth.c b/src/dot1ag_eth.c index b581c74..0fb6b69 100644 --- a/src/dot1ag_eth.c +++ b/src/dot1ag_eth.c @@ -78,7 +78,7 @@ get_local_mac(char *dev, uint8_t *ea) { if (ifa->ifa_addr == NULL) { continue; } - if (strncmp(ifa->ifa_name, dev, sizeof(dev)) != 0) { + if (strncmp(ifa->ifa_name, dev, sizeof(char *)) != 0) { continue; /* not the interface we are looking for */ } sdl = (struct sockaddr_dl *) ifa->ifa_addr;