Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec KNF
details: https://anonhg.NetBSD.org/src/rev/c5576868fb0c
branches: trunk
changeset: 825230:c5576868fb0c
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Jul 04 08:12:28 2017 +0000
description:
KNF
diffstat:
sys/netipsec/ipsec_netbsd.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 9c2436bbc901 -r c5576868fb0c sys/netipsec/ipsec_netbsd.c
--- a/sys/netipsec/ipsec_netbsd.c Tue Jul 04 08:11:32 2017 +0000
+++ b/sys/netipsec/ipsec_netbsd.c Tue Jul 04 08:12:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec_netbsd.c,v 1.42 2017/07/04 08:11:32 ozaki-r Exp $ */
+/* $NetBSD: ipsec_netbsd.c,v 1.43 2017/07/04 08:12:28 ozaki-r Exp $ */
/* $KAME: esp_input.c,v 1.60 2001/09/04 08:43:19 itojun Exp $ */
/* $KAME: ah_input.c,v 1.64 2001/09/04 08:43:19 itojun Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec_netbsd.c,v 1.42 2017/07/04 08:11:32 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec_netbsd.c,v 1.43 2017/07/04 08:12:28 ozaki-r Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -120,9 +120,8 @@
* corresponding routing entry.
*/
icp = (struct icmp *)((char *)ip -
- offsetof(struct icmp, icmp_ip));
+ offsetof(struct icmp, icmp_ip));
icmp_mtudisc(icp, ip->ip_dst);
-
}
KEY_FREESAV(&sav);
}
@@ -165,11 +164,9 @@
* recalculate the new MTU, and create the
* corresponding routing entry.
*/
-
icp = (struct icmp *)((char *)ip -
- offsetof(struct icmp, icmp_ip));
+ offsetof(struct icmp, icmp_ip));
icmp_mtudisc(icp, ip->ip_dst);
-
}
KEY_FREESAV(&sav);
}
Home |
Main Index |
Thread Index |
Old Index