summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2006-12-14 17:33:46 +0000
committerbz <bz@FreeBSD.org>2006-12-14 17:33:46 +0000
commit762d6693b66e0de16691f6627f55ebe4c4e93073 (patch)
treee8fdc9f5c6ffd1b697328dd5664e1d6d9c821303
parent675ebda1f65c51fec32aebacf8a899fe26d47358 (diff)
downloadFreeBSD-src-762d6693b66e0de16691f6627f55ebe4c4e93073.zip
FreeBSD-src-762d6693b66e0de16691f6627f55ebe4c4e93073.tar.gz
s,#if INET6,#ifdef INET6,
This unbreaks the build for FAST_IPSEC && !INET6 and was wrong anyway. Reported by: Dmitry Pryanishnikov <dmitry atlantis.dp.ua>
-rw-r--r--sys/netipsec/ipsec.c2
-rw-r--r--sys/netipsec/ipsec_input.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c
index 7f604ed..65a53c0 100644
--- a/sys/netipsec/ipsec.c
+++ b/sys/netipsec/ipsec.c
@@ -1843,7 +1843,7 @@ inet_ntoa4(struct in_addr ina)
char *
ipsec_address(union sockaddr_union* sa)
{
-#if INET6
+#ifdef INET6
char ip6buf[INET6_ADDRSTRLEN];
#endif
switch (sa->sa.sa_family) {
diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c
index ef007ef..3368560 100644
--- a/sys/netipsec/ipsec_input.c
+++ b/sys/netipsec/ipsec_input.c
@@ -277,7 +277,7 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav,
struct tdb_ident *tdbi;
struct secasindex *saidx;
int error;
-#if INET6
+#ifdef INET6
#ifdef notyet
char ip6buf[INET6_ADDRSTRLEN];
#endif
OpenPOWER on IntegriCloud