summaryrefslogtreecommitdiffstats
path: root/freebsd/contrib/pf/pfctl/pfctl_altq.c
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-07-29 16:04:42 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-08-03 14:13:18 +0200
commit85dd33213b46c7c77f0fe9788d0675398501ecc2 (patch)
tree8c2ef19818332f6f63f39f92cfa7aa387eda5508 /freebsd/contrib/pf/pfctl/pfctl_altq.c
parentpfctl: Add const and move static variables. (diff)
downloadrtems-libbsd-85dd33213b46c7c77f0fe9788d0675398501ecc2.tar.bz2
pfctl: Use static where possible.
Diffstat (limited to 'freebsd/contrib/pf/pfctl/pfctl_altq.c')
-rw-r--r--freebsd/contrib/pf/pfctl/pfctl_altq.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/contrib/pf/pfctl/pfctl_altq.c b/freebsd/contrib/pf/pfctl/pfctl_altq.c
index 4fc8b217..703bc560 100644
--- a/freebsd/contrib/pf/pfctl/pfctl_altq.c
+++ b/freebsd/contrib/pf/pfctl/pfctl_altq.c
@@ -50,8 +50,13 @@ __FBSDID("$FreeBSD$");
#define is_sc_null(sc) (((sc) == NULL) || ((sc)->m1 == 0 && (sc)->m2 == 0))
+#ifndef __rtems__
TAILQ_HEAD(altqs, pf_altq) altqs = TAILQ_HEAD_INITIALIZER(altqs);
LIST_HEAD(gen_sc, segment) rtsc, lssc;
+#else /* __rtems__ */
+static TAILQ_HEAD(altqs, pf_altq) altqs = TAILQ_HEAD_INITIALIZER(altqs);
+static LIST_HEAD(gen_sc, segment) rtsc, lssc;
+#endif /* __rtems__ */
struct pf_altq *qname_to_pfaltq(const char *, const char *);
u_int32_t qname_to_qid(const char *);