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-olsr.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-olsr.c')
-rw-r--r-- | print-olsr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-olsr.c b/print-olsr.c index ba0ed2be..2713c09c 100644 --- a/print-olsr.c +++ b/print-olsr.c @@ -78,7 +78,7 @@ struct olsr_common { #define OLSR_HELLO_LQ_MSG 201 /* LQ extensions olsr.org */ #define OLSR_TC_LQ_MSG 202 /* LQ extensions olsr.org */ -static struct tok olsr_msg_values[] = { +static const struct tok olsr_msg_values[] = { { OLSR_HELLO_MSG, "Hello" }, { OLSR_TC_MSG, "TC" }, { OLSR_MID_MSG, "MID" }, @@ -141,7 +141,7 @@ struct olsr_hna6 { #define OLSR_EXTRACT_LINK_TYPE(link_code) (link_code & 0x3) #define OLSR_EXTRACT_NEIGHBOR_TYPE(link_code) (link_code >> 2) -static struct tok olsr_link_type_values[] = { +static const struct tok olsr_link_type_values[] = { { 0, "Unspecified" }, { 1, "Asymmetric" }, { 2, "Symmetric" }, @@ -149,7 +149,7 @@ static struct tok olsr_link_type_values[] = { { 0, NULL} }; -static struct tok olsr_neighbor_type_values[] = { +static const struct tok olsr_neighbor_type_values[] = { { 0, "Not-Neighbor" }, { 1, "Symmetric" }, { 2, "Symmetric-MPR" }, |