From 686583cba4f2701185077eab58800741398c3ac2 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Fri, 29 Jul 2016 16:04:42 +0200 Subject: pfctl: Use static where possible. --- freebsd/contrib/pf/pfctl/pfctl_osfp.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'freebsd/contrib/pf/pfctl/pfctl_osfp.c') 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 *); -- cgit v1.2.3