aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOndrej Jirman <megous@megous.com>2018-11-21 17:29:21 +0100
committerRich Felker <dalias@aerifal.cx>2022-04-10 02:25:02 -0400
commit8cf87b3027009c0acac591d9ae80262dc25daccf (patch)
treebeda4c4aec5dc5ad53fd88d2f33a589f516b5abf /src
parent7a43f6fea9081bdd53d8a11cef9e9fab0348c53d (diff)
downloadmusl-8cf87b3027009c0acac591d9ae80262dc25daccf.tar.gz
musl-8cf87b3027009c0acac591d9ae80262dc25daccf.tar.xz
musl-8cf87b3027009c0acac591d9ae80262dc25daccf.zip
fix incorrect parameter name in internal netlink.h RTA_OK macro
the wrong name works only by accident.
Diffstat (limited to 'src')
-rw-r--r--src/network/netlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/netlink.h b/src/network/netlink.h
index 38acb178..873fabe2 100644
--- a/src/network/netlink.h
+++ b/src/network/netlink.h
@@ -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))