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-dtp.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-dtp.c')
| -rw-r--r-- | print-dtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-dtp.c b/print-dtp.c index c358a893..14ac6916 100644 --- a/print-dtp.c +++ b/print-dtp.c @@ -37,7 +37,7 @@ #define DTP_DTP_TYPE_TLV 0x0003 #define DTP_NEIGHBOR_TLV 0x0004 -static struct tok dtp_tlv_values[] = { +static const struct tok dtp_tlv_values[] = { { DTP_DOMAIN_TLV, "Domain TLV"}, { DTP_STATUS_TLV, "Status TLV"}, { DTP_DTP_TYPE_TLV, "DTP type TLV"}, |
