summaryrefslogtreecommitdiff
path: root/print-pppoe.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2013-09-24 20:46:24 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2013-09-24 20:54:03 +0400
commit7de355927bb4dac90db045d52a69bf95c841b807 (patch)
tree61668ba48012b8bbd61af1fc765ab27cf0233ac3 /print-pppoe.c
parent1db497c3176b331b768ed1b5326473f8fbca73bf (diff)
downloadtcpdump-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-pppoe.c')
-rw-r--r--print-pppoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-pppoe.c b/print-pppoe.c
index 8040c7ae..f8c9008a 100644
--- a/print-pppoe.c
+++ b/print-pppoe.c
@@ -51,7 +51,7 @@ enum {
PPPOE_PADT = 0xa7
};
-static struct tok pppoecode2str[] = {
+static const struct tok pppoecode2str[] = {
{ PPPOE_PADI, "PADI" },
{ PPPOE_PADO, "PADO" },
{ PPPOE_PADR, "PADR" },
@@ -76,7 +76,7 @@ enum {
PPPOE_GENERIC_ERROR = 0x0203
};
-static struct tok pppoetag2str[] = {
+static const struct tok pppoetag2str[] = {
{ PPPOE_EOL, "EOL" },
{ PPPOE_SERVICE_NAME, "Service-Name" },
{ PPPOE_AC_NAME, "AC-Name" },