wired: Silence sparse warning on redefinition of IFNAMSIZ
authorJouni Malinen <j@w1.fi>
Fri, 24 Jun 2016 14:36:17 +0000 (17:36 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 Jun 2016 16:02:58 +0000 (19:02 +0300)
commit2f13e54dfc3a991804d5cd5cede291da6bdcbabc
treeb5d1279eeba627b0a68870a3f2bcb3e17d539f3c
parent82ffcba755eb546c12d384554402e0eefd1816eb
wired: Silence sparse warning on redefinition of IFNAMSIZ

driver_wired.c pulls in utils/common.h before net/if.h as a workaround
for NetBSD build. This results in IFNAMSIZ getting redefined and sparse
warning about this. Silence that warning by undefining the IFNAMSIZ
definition from common.h to allow the one from net/if.h being used. In
addition, remove duplicated inclusion of net/if.h.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_wired.c