Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netipsec Comment out unused functions



details:   https://anonhg.NetBSD.org/src/rev/425a8b5351f6
branches:  trunk
changeset: 355549:425a8b5351f6
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Aug 02 04:03:28 2017 +0000

description:
Comment out unused functions

diffstat:

 sys/netipsec/ipsec.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r effbca777259 -r 425a8b5351f6 sys/netipsec/ipsec.c
--- a/sys/netipsec/ipsec.c      Wed Aug 02 03:45:57 2017 +0000
+++ b/sys/netipsec/ipsec.c      Wed Aug 02 04:03:28 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec.c,v 1.114 2017/08/02 03:45:57 ozaki-r Exp $      */
+/*     $NetBSD: ipsec.c,v 1.115 2017/08/02 04:03:28 ozaki-r Exp $      */
 /*     $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netipsec/ipsec.c,v 1.2.2.2 2003/07/01 01:38:13 sam Exp $       */
 /*     $KAME: ipsec.c,v 1.103 2001/05/24 07:14:18 sakane Exp $ */
 
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.114 2017/08/02 03:45:57 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.115 2017/08/02 04:03:28 ozaki-r Exp $");
 
 /*
  * IPsec controller part.
@@ -198,7 +198,9 @@
 static int ipsec6_setspidx_ipaddr (struct mbuf *, struct secpolicyindex *);
 #endif
 static void ipsec_delpcbpolicy (struct inpcbpolicy *);
+#if 0 /* unused */
 static struct secpolicy *ipsec_deepcopy_policy (const struct secpolicy *);
+#endif
 static int ipsec_set_policy (struct secpolicy **, int, const void *, size_t,
     kauth_cred_t);
 static int ipsec_get_policy (struct secpolicy *, struct mbuf **);
@@ -1277,6 +1279,7 @@
        return 0;
 }
 
+#if 0 /* unused */
 /* copy old ipsec policy into new */
 int
 ipsec_copy_policy(const struct inpcbpolicy *old, struct inpcbpolicy *new)
@@ -1346,6 +1349,7 @@
 
        return dst;
 }
+#endif
 
 static void
 ipsec_destroy_policy(struct secpolicy *sp)



Home | Main Index | Thread Index | Old Index