diff options
author | Kristof Provost <kp@FreeBSD.org> | 2016-08-02 20:32:02 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2016-08-02 20:32:02 +0000 |
commit | 72a3cf0f4112b92523e993327c2ee58b16fce74d (patch) | |
tree | 899f86cc32921c625d89d2d875899fffc6c0889b /sbin/pfctl/pfctl_parser.c | |
parent | dd2be8cb6e47f93a99ef263706a8e4a05e236b8f (diff) | |
download | src-72a3cf0f4112b92523e993327c2ee58b16fce74d.tar.gz src-72a3cf0f4112b92523e993327c2ee58b16fce74d.zip |
pfctl: Use const where possible.
This adds const qualifiers where it is possible.
Submitted by: Christian Mauderer <christian.mauderer@embedded-brains.de>
Notes
Notes:
svn path=/head/; revision=303678
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 4bb1477efe67..d9aa49a2196e 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -76,7 +76,7 @@ struct node_host *host_v4(const char *, int); struct node_host *host_v6(const char *, int); struct node_host *host_dns(const char *, int, int); -const char *tcpflags = "FSRPAUEW"; +const char * const tcpflags = "FSRPAUEW"; static const struct icmptypeent icmp_type[] = { { "echoreq", ICMP_ECHO }, @@ -473,10 +473,10 @@ print_pool(struct pf_pool *pool, u_int16_t p1, u_int16_t p2, printf(" static-port"); } -const char *pf_reasons[PFRES_MAX+1] = PFRES_NAMES; -const char *pf_lcounters[LCNT_MAX+1] = LCNT_NAMES; -const char *pf_fcounters[FCNT_MAX+1] = FCNT_NAMES; -const char *pf_scounters[FCNT_MAX+1] = FCNT_NAMES; +const char * const pf_reasons[PFRES_MAX+1] = PFRES_NAMES; +const char * const pf_lcounters[LCNT_MAX+1] = LCNT_NAMES; +const char * const pf_fcounters[FCNT_MAX+1] = FCNT_NAMES; +const char * const pf_scounters[FCNT_MAX+1] = FCNT_NAMES; void print_status(struct pf_status *s, int opts) |