summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-19 09:11:05 +0000
committerbrian <brian@FreeBSD.org>2000-03-19 09:11:05 +0000
commitab3c427b15d7cf83d47dfab980ad12a83fce2918 (patch)
treeb7935056baccc581744664c9675047209e759c91 /lib
parent1a427b0d614c15b6d452ca2de1bf6bf32496951a (diff)
downloadFreeBSD-src-ab3c427b15d7cf83d47dfab980ad12a83fce2918.zip
FreeBSD-src-ab3c427b15d7cf83d47dfab980ad12a83fce2918.tar.gz
Make _FindLinkIn() static and only define GetDestPort when
NO_FW_PUNCH isn't defined.
Diffstat (limited to 'lib')
-rw-r--r--lib/libalias/alias_db.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libalias/alias_db.c b/lib/libalias/alias_db.c
index 618162c..1ad28e8 100644
--- a/lib/libalias/alias_db.c
+++ b/lib/libalias/alias_db.c
@@ -1101,7 +1101,7 @@ FindLinkOut(struct in_addr src_addr,
}
-struct alias_link *
+static struct alias_link *
_FindLinkIn(struct in_addr dst_addr,
struct in_addr alias_addr,
u_short dst_port,
@@ -1652,11 +1652,13 @@ GetAliasPort(struct alias_link *link)
return(link->alias_port);
}
-u_short
+#ifndef NO_FW_PUNCH
+static u_short
GetDestPort(struct alias_link *link)
{
return(link->dst_port);
}
+#endif
void
SetAckModified(struct alias_link *link)
OpenPOWER on IntegriCloud