Fix OSX compile error v0.9.1
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Wed, 10 Feb 2016 17:40:34 +0000 (18:40 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Wed, 10 Feb 2016 17:40:34 +0000 (18:40 +0100)
ethsock.c

index d754653ca11e48ab49e0e7da02315516b725d105..36ffeb6de0f948a53f5a8a0bd2df513339e38bfc 100644 (file)
--- 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);