[IPSEC] Turn km_event.data into a union

This patch turns km_event.data into a union.  This makes code that
uses it clearer.
  
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Herbert Xu
2005-06-18 22:44:00 -07:00
committed by David S. Miller
parent 4f09f0bbc1
commit bf08867f91
4 changed files with 17 additions and 21 deletions

View File

@@ -173,7 +173,12 @@ enum {
/* callback structure passed from either netlink or pfkey */
struct km_event
{
u32 data;
union {
u32 hard;
u32 proto;
u32 byid;
} data;
u32 seq;
u32 pid;
u32 event;