aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_state.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-06-19 01:44:00 -0400
committerDavid S. Miller <davem@davemloft.net>2005-06-19 01:44:00 -0400
commitbf08867f91a43aa3ba2e4598c06c4769a6cdddf6 (patch)
tree316504b4756a32d802ea037815f2d9022ab88bfe /net/xfrm/xfrm_state.c
parent4f09f0bbc1cb3c74e8f2047ad4be201a059829ee (diff)
[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>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r--net/xfrm/xfrm_state.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
index 94f7416a4ab0..e068bd721050 100644
--- a/net/xfrm/xfrm_state.c
+++ b/net/xfrm/xfrm_state.c
@@ -835,7 +835,7 @@ static void km_state_expired(struct xfrm_state *x, int hard)
835{ 835{
836 struct km_event c; 836 struct km_event c;
837 837
838 c.data = hard; 838 c.data.hard = hard;
839 c.event = XFRM_SAP_EXPIRED; 839 c.event = XFRM_SAP_EXPIRED;
840 km_state_notify(x, &c); 840 km_state_notify(x, &c);
841 841
@@ -883,8 +883,7 @@ void km_policy_expired(struct xfrm_policy *pol, int dir, int hard)
883{ 883{
884 struct km_event c; 884 struct km_event c;
885 885
886 c.data = hard; 886 c.data.hard = hard;
887 c.data = hard;
888 c.event = XFRM_SAP_EXPIRED; 887 c.event = XFRM_SAP_EXPIRED;
889 km_policy_notify(pol, dir, &c); 888 km_policy_notify(pol, dir, &c);
890 889