summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/ipsec.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-06-10 19:25:46 +0000
committerbz <bz@FreeBSD.org>2009-06-10 19:25:46 +0000
commit86d0c6ee3de8b19b272f9201dc302405feccbd7a (patch)
tree9b72dbfa26ce9e7a931943193c3e0f65f1a91d4a /sys/netipsec/ipsec.c
parent72ecca2c268bc360ea02c2241bf2426bf22d443b (diff)
downloadFreeBSD-src-86d0c6ee3de8b19b272f9201dc302405feccbd7a.zip
FreeBSD-src-86d0c6ee3de8b19b272f9201dc302405feccbd7a.tar.gz
Properly hide IPv4 only variables and functions under #ifdef INET.
Diffstat (limited to 'sys/netipsec/ipsec.c')
-rw-r--r--sys/netipsec/ipsec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c
index 4eef064..dabd5b6 100644
--- a/sys/netipsec/ipsec.c
+++ b/sys/netipsec/ipsec.c
@@ -1702,6 +1702,7 @@ vshiftl(unsigned char *bitmap, int nbit, int wsize)
}
}
+#ifdef INET
/* Return a printable string for the IPv4 address. */
static char *
inet_ntoa4(struct in_addr ina)
@@ -1716,6 +1717,7 @@ inet_ntoa4(struct in_addr ina)
ucp[2] & 0xff, ucp[3] & 0xff);
return (buf[i]);
}
+#endif
/* Return a printable string for the address. */
char *
OpenPOWER on IntegriCloud