summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_iface.c
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-07-04 16:11:03 +0000
committerstefanf <stefanf@FreeBSD.org>2004-07-04 16:11:03 +0000
commit9dea8aeba1c4f733fc95d1dfd11cfc8d3092a654 (patch)
tree0e3fe3a61275cb24fb693e8710ebc6420adf5306 /sys/netgraph/ng_iface.c
parentc8bc9c77afa1fbbf704376606a236020afdfba8e (diff)
downloadFreeBSD-src-9dea8aeba1c4f733fc95d1dfd11cfc8d3092a654.zip
FreeBSD-src-9dea8aeba1c4f733fc95d1dfd11cfc8d3092a654.tar.gz
Consistently use __inline instead of __inline__ as the former is an empty macro
in <sys/cdefs.h> for compilers without support for inline.
Diffstat (limited to 'sys/netgraph/ng_iface.c')
-rw-r--r--sys/netgraph/ng_iface.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c
index c200191..899bf22 100644
--- a/sys/netgraph/ng_iface.c
+++ b/sys/netgraph/ng_iface.c
@@ -225,7 +225,7 @@ static int ng_units_in_use = 0;
/*
* Get the family descriptor from the family ID
*/
-static __inline__ iffam_p
+static __inline iffam_p
get_iffam_from_af(sa_family_t family)
{
iffam_p iffam;
@@ -242,7 +242,7 @@ get_iffam_from_af(sa_family_t family)
/*
* Get the family descriptor from the hook
*/
-static __inline__ iffam_p
+static __inline iffam_p
get_iffam_from_hook(priv_p priv, hook_p hook)
{
int k;
@@ -257,7 +257,7 @@ get_iffam_from_hook(priv_p priv, hook_p hook)
* Get the hook from the iffam descriptor
*/
-static __inline__ hook_p *
+static __inline hook_p *
get_hook_from_iffam(priv_p priv, iffam_p iffam)
{
return (&priv->hooks[iffam - gFamilies]);
@@ -266,7 +266,7 @@ get_hook_from_iffam(priv_p priv, iffam_p iffam)
/*
* Get the iffam descriptor from the name
*/
-static __inline__ iffam_p
+static __inline iffam_p
get_iffam_from_name(const char *name)
{
iffam_p iffam;
@@ -284,7 +284,7 @@ get_iffam_from_name(const char *name)
* Find the first free unit number for a new interface.
* Increase the size of the unit bitmap as necessary.
*/
-static __inline__ int
+static __inline int
ng_iface_get_unit(int *unit)
{
int index, bit;
@@ -320,7 +320,7 @@ ng_iface_get_unit(int *unit)
/*
* Free a no longer needed unit number.
*/
-static __inline__ void
+static __inline void
ng_iface_free_unit(int unit)
{
int index, bit;
OpenPOWER on IntegriCloud