diff options
author | Andrey Vagin <avagin@openvz.org> | 2013-03-21 20:33:46 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-21 20:36:33 +0400 |
commit | ae5fc98728c8bbbd6d7cab0b9781671fc4419c1b (patch) | |
tree | 76c3e90232bf37be0744fcd3d72396112f979815 /include/uapi/linux/unix_diag.h | |
parent | b37391e68cd8a9cae7d53015627510cc952f4f02 (diff) | |
download | linux-ae5fc98728c8bbbd6d7cab0b9781671fc4419c1b.tar.xz |
net: fix *_DIAG_MAX constants
Follow the common pattern and define *_DIAG_MAX like:
[...]
__XXX_DIAG_MAX,
};
Because everyone is used to do:
struct nlattr *attrs[XXX_DIAG_MAX+1];
nla_parse([...], XXX_DIAG_MAX, [...]
Reported-by: Thomas Graf <tgraf@suug.ch>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/unix_diag.h')
-rw-r--r-- | include/uapi/linux/unix_diag.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/unix_diag.h b/include/uapi/linux/unix_diag.h index b8a24941db21..b9e2a6a7446f 100644 --- a/include/uapi/linux/unix_diag.h +++ b/include/uapi/linux/unix_diag.h @@ -39,9 +39,11 @@ enum { UNIX_DIAG_MEMINFO, UNIX_DIAG_SHUTDOWN, - UNIX_DIAG_MAX, + __UNIX_DIAG_MAX, }; +#define UNIX_DIAG_MAX (__UNIX_DIAG_MAX - 1) + struct unix_diag_vfs { __u32 udiag_vfs_ino; __u32 udiag_vfs_dev; |