2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

static inline -> inline

This commit is contained in:
Mark Andrews 2008-06-24 21:44:11 +00:00
parent 1ef53a4a91
commit 391ac1cbfd

View File

@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: portset.c,v 1.2 2008/06/23 19:41:19 jinmei Exp $ */ /* $Id: portset.c,v 1.3 2008/06/24 21:44:11 marka Exp $ */
/*! \file */ /*! \file */
#include <isc/mem.h> #include <isc/mem.h>
@ -35,12 +35,12 @@ struct isc_portset {
isc_uint32_t buf[ISC_PORTSET_BUFSIZE]; isc_uint32_t buf[ISC_PORTSET_BUFSIZE];
}; };
static inline isc_boolean_t inline isc_boolean_t
portset_isset(isc_portset_t *portset, in_port_t port) { portset_isset(isc_portset_t *portset, in_port_t port) {
return (ISC_TF((portset->buf[port >> 5] & (1 << (port & 31))) != 0)); return (ISC_TF((portset->buf[port >> 5] & (1 << (port & 31))) != 0));
} }
static inline void inline void
portset_add(isc_portset_t *portset, in_port_t port) { portset_add(isc_portset_t *portset, in_port_t port) {
if (!portset_isset(portset, port)) { if (!portset_isset(portset, port)) {
portset->nports++; portset->nports++;
@ -48,7 +48,7 @@ portset_add(isc_portset_t *portset, in_port_t port) {
} }
} }
static inline void inline void
portset_remove(isc_portset_t *portset, in_port_t port) { portset_remove(isc_portset_t *portset, in_port_t port) {
if (portset_isset(portset, port)) { if (portset_isset(portset, port)) {
portset->nports--; portset->nports--;