Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Simplify; assignment just works for spidx (NFC)
details: https://anonhg.NetBSD.org/src/rev/800b1ae1fd3e
branches: trunk
changeset: 824292:800b1ae1fd3e
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed May 31 04:02:05 2017 +0000
description:
Simplify; assignment just works for spidx (NFC)
diffstat:
sys/netipsec/key.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b0f5ccc8741b -r 800b1ae1fd3e sys/netipsec/key.c
--- a/sys/netipsec/key.c Wed May 31 04:01:21 2017 +0000
+++ b/sys/netipsec/key.c Wed May 31 04:02:05 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.152 2017/05/31 04:01:21 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.153 2017/05/31 04:02:05 ozaki-r Exp $ */
/* $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $ */
/* $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.152 2017/05/31 04:01:21 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.153 2017/05/31 04:02:05 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -1957,7 +1957,7 @@
return key_senderror(so, m, ENOBUFS);
}
- key_init_spidx_bymsghdr(&newsp->spidx, mhp);
+ newsp->spidx = spidx;
newsp->created = time_uptime;
newsp->lastused = newsp->created;
newsp->lifetime = lft ? lft->sadb_lifetime_addtime : 0;
Home |
Main Index |
Thread Index |
Old Index