Skip to contentSkip to conversation

Cleanup xfrm_msg_min and xfrm_dispatch

PATCH Applied Thomas Graf 2 participants 2 messages May 1, 2005 – May 3, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

include/linux/xfrm.h +2 -0
diff -Nru -X dontdiff linux-2.6.12-rc3.orig/include/linux/xfrm.h linux-2.6.12-rc3/include/linux/xfrm.h
@@ -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

maintainer Applied
#1 lore raw
Quoted 5 lines · On Sun, 1 May 2005 20:55:48 +0200 Thomas Graf <[email protected]> wrote:

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.

Applied, thanks.