diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2013-09-24 20:46:24 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2013-09-24 20:54:03 +0400 |
commit | 7de355927bb4dac90db045d52a69bf95c841b807 (patch) | |
tree | 61668ba48012b8bbd61af1fc765ab27cf0233ac3 /print-pflog.c | |
parent | 1db497c3176b331b768ed1b5326473f8fbca73bf (diff) | |
download | tcpdump-7de355927bb4dac90db045d52a69bf95c841b807.tar.gz |
justify declarations of struct tok arrays
Make sure all of them are declared const and most of them -- static.
Proper declaration of token arrays is a common review point for new code
that is based on existing decoders. Thus fix the issue at its root.
Diffstat (limited to 'print-pflog.c')
-rw-r--r-- | print-pflog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-pflog.c b/print-pflog.c index ac325f4b..8a3b66aa 100644 --- a/print-pflog.c +++ b/print-pflog.c @@ -46,7 +46,7 @@ static const char rcsid[] _U_ = #include "interface.h" #include "addrtoname.h" -static struct tok pf_reasons[] = { +static const struct tok pf_reasons[] = { { 0, "0(match)" }, { 1, "1(bad-offset)" }, { 2, "2(fragment)" }, @@ -65,7 +65,7 @@ static struct tok pf_reasons[] = { { 0, NULL } }; -static struct tok pf_actions[] = { +static const struct tok pf_actions[] = { { PF_PASS, "pass" }, { PF_DROP, "block" }, { PF_SCRUB, "scrub" }, @@ -79,7 +79,7 @@ static struct tok pf_actions[] = { { 0, NULL } }; -static struct tok pf_directions[] = { +static const struct tok pf_directions[] = { { PF_INOUT, "in/out" }, { PF_IN, "in" }, { PF_OUT, "out" }, |