mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix incorrect parameter name in internal netlink.h RTA_OK macro
the wrong name works only by accident.
This commit is contained in:
parent
7a43f6fea9
commit
8cf87b3027
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ struct ifaddrmsg {
|
|||
#define RTA_DATALEN(rta) ((rta)->rta_len-sizeof(struct rtattr))
|
||||
#define RTA_DATAEND(rta) ((char*)(rta)+(rta)->rta_len)
|
||||
#define RTA_NEXT(rta) (struct rtattr*)((char*)(rta)+NETLINK_ALIGN((rta)->rta_len))
|
||||
#define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr))
|
||||
#define RTA_OK(rta,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr))
|
||||
|
||||
#define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len)))
|
||||
#define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh))
|
||||
|
|
Loading…
Add table
Reference in a new issue