History

[NETLINK]: remove third bogus argument from NLA_PUT_FLAG

This patch removes the 'value' argument from NLA_PUT_FLAG which is unused anyway. The documentation comment was already correct so it doesn't need an update :)

Johannes Berg committed 20 years ago

Commit ff5dfe71 parent 97e58481 file · +1 −1Browse files

Showing the changes to include/net (1 of 1 file). Show all

Unified · Split

include/net/netlink.h+1−1
@@ -828,7 +828,7 @@ static inline int nla_put_msecs(struct sk_buff *skb, int attrtype, · 827 unmodified lines
828#define NLA_PUT_STRING(skb, attrtype, value) \828#define NLA_PUT_STRING(skb, attrtype, value) \
829 NLA_PUT(skb, attrtype, strlen(value) + 1, value)829 NLA_PUT(skb, attrtype, strlen(value) + 1, value)
830 830
831#define NLA_PUT_FLAG(skb, attrtype, value) \831#define NLA_PUT_FLAG(skb, attrtype) \
832 NLA_PUT(skb, attrtype, 0, NULL)832 NLA_PUT(skb, attrtype, 0, NULL)
833 833
834#define NLA_PUT_MSECS(skb, attrtype, jiffies) \834#define NLA_PUT_MSECS(skb, attrtype, jiffies) \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t