diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-07-29 16:04:42 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-03 14:13:18 +0200 |
commit | 85dd33213b46c7c77f0fe9788d0675398501ecc2 (patch) | |
tree | 8c2ef19818332f6f63f39f92cfa7aa387eda5508 /freebsd/contrib/pf/pfctl/pfctl_osfp.c | |
parent | pfctl: Add const and move static variables. (diff) | |
download | rtems-libbsd-85dd33213b46c7c77f0fe9788d0675398501ecc2.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.c | 6 |
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 81204d82..3183a046 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 *); |