summaryrefslogtreecommitdiff
path: root/print-olsr.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-olsr.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-olsr.c')
-rw-r--r--print-olsr.c6
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" },