summaryrefslogtreecommitdiff
path: root/print-udld.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-udld.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-udld.c')
-rw-r--r--print-udld.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-udld.c b/print-udld.c
index a5488dda..e8395d0a 100644
--- a/print-udld.c
+++ b/print-udld.c
@@ -41,7 +41,7 @@
#define UDLD_DEVICE_NAME_TLV 0x0006
#define UDLD_SEQ_NUMBER_TLV 0x0007
-static struct tok udld_tlv_values[] = {
+static const struct tok udld_tlv_values[] = {
{ UDLD_DEVICE_ID_TLV, "Device-ID TLV"},
{ UDLD_PORT_ID_TLV, "Port-ID TLV"},
{ UDLD_ECHO_TLV, "Echo TLV"},
@@ -52,7 +52,7 @@ static struct tok udld_tlv_values[] = {
{ 0, NULL}
};
-static struct tok udld_code_values[] = {
+static const struct tok udld_code_values[] = {
{ 0x00, "Reserved"},
{ 0x01, "Probe message"},
{ 0x02, "Echo message"},
@@ -60,7 +60,7 @@ static struct tok udld_code_values[] = {
{ 0, NULL}
};
-static struct tok udld_flags_values[] = {
+static const struct tok udld_flags_values[] = {
{ 0x00, "RT"},
{ 0x01, "RSY"},
{ 0, NULL}