From f37992b6e59cd92c7d9973dea69cbc1cb9480461 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 24 Jun 2008 23:27:11 +0000 Subject: [PATCH] #include , restore 'static inline' --- lib/isc/portset.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/isc/portset.c b/lib/isc/portset.c index 524368f5d7..0265c89efd 100644 --- a/lib/isc/portset.c +++ b/lib/isc/portset.c @@ -14,9 +14,12 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: portset.c,v 1.2.4.2 2008/06/24 21:42:19 marka Exp $ */ +/* $Id: portset.c,v 1.2.4.3 2008/06/24 23:27:11 marka Exp $ */ /*! \file */ + +#include + #include #include #include @@ -35,12 +38,12 @@ struct isc_portset { isc_uint32_t buf[ISC_PORTSET_BUFSIZE]; }; -inline isc_boolean_t +static inline isc_boolean_t portset_isset(isc_portset_t *portset, in_port_t port) { return (ISC_TF((portset->buf[port >> 5] & (1 << (port & 31))) != 0)); } -inline void +static inline void portset_add(isc_portset_t *portset, in_port_t port) { if (!portset_isset(portset, port)) { portset->nports++; @@ -48,7 +51,7 @@ portset_add(isc_portset_t *portset, in_port_t port) { } } -inline void +static inline void portset_remove(isc_portset_t *portset, in_port_t port) { if (portset_isset(portset, port)) { portset->nports--;