From: Joseph C. Lehner Date: Wed, 10 Feb 2016 17:40:34 +0000 (+0100) Subject: Fix OSX compile error X-Git-Tag: v0.9.1^0 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2f9307bcda9db3d1913cf21773f66ea79e1fa27d;p=oweals%2Fnmrpflash.git Fix OSX compile error --- diff --git a/ethsock.c b/ethsock.c index d754653..36ffeb6 100644 --- a/ethsock.c +++ b/ethsock.c @@ -67,7 +67,7 @@ static inline bool sockaddr_get_hwaddr(struct sockaddr *sa, uint8_t *hwaddr) } #ifndef NMRPFLASH_LINUX - if (((struct sockaddr_dl*)addr)->sdl_type != IFT_ETHER) { + if (((struct sockaddr_dl*)sa)->sdl_type != IFT_ETHER) { return false; } src = LLADDR((struct sockaddr_dl*)sa);