Cleanup xfrm_msg_min and xfrm_dispatch
Subsystems (3)
PATCH 2/2 Cleanup xfrm_msg_min and xfrm_dispatch
Converts xfrm_msg_min and xfrm_dispatch to use c99 designated initializers to make greping a little bit easier. Also replaces two hardcoded message type with meaningful names.
Signed-off-by Thomas Graf <[email protected]>
include/linux/xfrm.h +2 -0
@@ -144,6 +144,8 @@ };#define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1) +#define XFRM_NR_MSGTYPES (XFRM_MSG_MAX + 1 - XFRM_MSG_BASE) +struct xfrm_user_tmpl {struct xfrm_id id;__u16 family;
net/xfrm/xfrm_user.c +36 -37
90 lines not on this page · raw message
Quoted 5 lines · On Sun, 1 May 2005 20:55:48 +0200 Thomas Graf <[email protected]> wrote:
Converts
xfrm_msg_minandxfrm_dispatchto use c99 designated initializers to make greping a little bit easier. Also replaces two hardcoded message type with meaningful names.Signed-off-by Thomas Graf <[email protected]>
Applied, thanks.