summaryrefslogtreecommitdiffstats
path: root/freebsd/contrib/pf/pfctl/pfctl_osfp.c
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-07-29 16:04:42 +0200
committerChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-02 10:21:52 +0200
commit686583cba4f2701185077eab58800741398c3ac2 (patch)
tree153b47659898def269b7f932131b3f77c244968d /freebsd/contrib/pf/pfctl/pfctl_osfp.c
parentpfctl: Add const and move static variables. (diff)
downloadrtems-libbsd-686583cba4f2701185077eab58800741398c3ac2.tar.bz2
pfctl: Use static where possible.
Diffstat (limited to 'freebsd/contrib/pf/pfctl/pfctl_osfp.c')
-rw-r--r--freebsd/contrib/pf/pfctl/pfctl_osfp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/contrib/pf/pfctl/pfctl_osfp.c b/freebsd/contrib/pf/pfctl/pfctl_osfp.c
index b4ac0e01..0f8679a1 100644
--- a/freebsd/contrib/pf/pfctl/pfctl_osfp.c
+++ b/freebsd/contrib/pf/pfctl/pfctl_osfp.c
@@ -66,9 +66,15 @@ struct name_entry {
struct name_list nm_sublist;
int nm_sublist_num;
};
+#ifndef __rtems__
struct name_list classes = LIST_HEAD_INITIALIZER(&classes);
int class_count;
int fingerprint_count;
+#else /* __rtems__ */
+static struct name_list classes = LIST_HEAD_INITIALIZER(&classes);
+static int class_count;
+static int fingerprint_count;
+#endif /* __rtems__ */
void add_fingerprint(int, int, struct pf_osfp_ioctl *);
struct name_entry *fingerprint_name_entry(struct name_list *, char *);