From 01315efca3f597ef662769d7af23b0787c44587d Mon Sep 17 00:00:00 2001 From: Max Laier Date: Sun, 29 Feb 2004 16:34:43 +0000 Subject: [PATCH] Remove __inline keyword from functions that can't be inlined according to LINT. This fixes LINT compliation for now, but needs to be revised. Changes do not affect the objects. Approved by: bms(mentor) --- sys/contrib/pf/net/pf.c | 4 ++++ sys/contrib/pf/net/pf_norm.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c index 81b74c3158f5..d1fc74bba12b 100644 --- a/sys/contrib/pf/net/pf.c +++ b/sys/contrib/pf/net/pf.c @@ -302,7 +302,11 @@ static __inline int pf_state_compare(struct pf_tree_node *, struct pf_state_tree tree_lan_ext, tree_ext_gwy; RB_GENERATE(pf_state_tree, pf_tree_node, entry, pf_state_compare); +#if defined(__FreeBSD__) +static int +#else static __inline int +#endif pf_state_compare(struct pf_tree_node *a, struct pf_tree_node *b) { int diff; diff --git a/sys/contrib/pf/net/pf_norm.c b/sys/contrib/pf/net/pf_norm.c index 8f597d864980..f5607cee96e3 100644 --- a/sys/contrib/pf/net/pf_norm.c +++ b/sys/contrib/pf/net/pf_norm.c @@ -227,7 +227,11 @@ pf_normalize_init(void) TAILQ_INIT(&pf_cachequeue); } +#if defined(__FreeBSD__) +static int +#else static __inline int +#endif pf_frag_compare(struct pf_fragment *a, struct pf_fragment *b) { int diff;