mirror of
https://github.com/proski/madwifi
synced 2024-11-24 07:19:42 +03:00
Don't redefine netdev_for_each_mc_addr()
It's already defined in CentOS 2.6.18-238.19.1.el5 kernel. Use parentheses around dev to be safer. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4168 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
5890429464
commit
bd86fad851
@ -78,8 +78,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)
|
||||||
|
#ifndef netdev_for_each_mc_addr
|
||||||
#define netdev_for_each_mc_addr(mclist, dev) \
|
#define netdev_for_each_mc_addr(mclist, dev) \
|
||||||
for (mclist = dev->mc_list; mclist; mclist = mclist->next)
|
for (mclist = (dev)->mc_list; mclist; mclist = mclist->next)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
|
||||||
|
Loading…
Reference in New Issue
Block a user