Thread (5 messages) flat view 5 messages, 4 authors, 2017-09-18

RE: [PATCH] net_sched: use explicit size of struct tcmsg, remove need to declare tcm

From: David Laight <hidden>
Date: 2017-09-18 15:10:44
Also in: kernel-janitors, lkml

From: Eric Dumazet
Sent: 18 September 2017 16:01
...
quoted
quoted
-	err = nlmsg_parse(nlh, sizeof(*tcm), tca, TCA_MAX, NULL, NULL);
+	err = nlmsg_parse(nlh, sizeof(struct tcmsg), tca, TCA_MAX, NULL, NULL);
Would sizeof(*nlmsg_data(nlh)) be cleaner??
Not really, since

static inline void *nlmsg_data(const struct nlmsghdr *nlh)
I thought about that after posting :-(

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help