Source-Changes-HG archive

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

[src/trunk]: src/sbin/ping6 #ifdef forward declaration of setpolicy like defi...



details:   https://anonhg.NetBSD.org/src/rev/8c57af3c4be4
branches:  trunk
changeset: 814017:8c57af3c4be4
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Feb 29 16:25:06 2016 +0000

description:
#ifdef forward declaration of setpolicy like definition.

diffstat:

 sbin/ping6/ping6.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 85921dbc89dd -r 8c57af3c4be4 sbin/ping6/ping6.c
--- a/sbin/ping6/ping6.c        Mon Feb 29 16:23:25 2016 +0000
+++ b/sbin/ping6/ping6.c        Mon Feb 29 16:25:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ping6.c,v 1.91 2015/11/04 08:07:54 ozaki-r Exp $       */
+/*     $NetBSD: ping6.c,v 1.92 2016/02/29 16:25:06 riastradh Exp $     */
 /*     $KAME: ping6.c,v 1.164 2002/11/16 14:05:37 itojun Exp $ */
 
 /*
@@ -77,7 +77,7 @@
 #else
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ping6.c,v 1.91 2015/11/04 08:07:54 ozaki-r Exp $");
+__RCSID("$NetBSD: ping6.c,v 1.92 2016/02/29 16:25:06 riastradh Exp $");
 #endif
 #endif
 
@@ -282,7 +282,11 @@
 static void     pr_retip(struct ip6_hdr *, u_char *);
 static void     summary(void);
 static void     tvsub(struct timeval *, struct timeval *);
+#ifdef IPSEC
+#ifdef IPSEC_POLICY_IPSEC
 static int      setpolicy(int, char *);
+#endif /* IPSEC_POLICY_IPSEC */
+#endif /* IPSEC */
 static char    *nigroup(char *);
 static double  timespec_to_sec(const struct timespec *tp);
 static double  diffsec(struct timespec *, struct timespec *);



Home | Main Index | Thread Index | Old Index