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-atalk.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-atalk.c')
-rw-r--r-- | print-atalk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-atalk.c b/print-atalk.c index a075b189..be1c154f 100644 --- a/print-atalk.c +++ b/print-atalk.c @@ -43,7 +43,7 @@ static const char rcsid[] _U_ = #include "extract.h" /* must come after interface.h */ #include "appletalk.h" -static struct tok type2str[] = { +static const struct tok type2str[] = { { ddpRTMP, "rtmp" }, { ddpRTMPrequest, "rtmpReq" }, { ddpECHO, "echo" }, @@ -602,7 +602,7 @@ ataddr_string(u_short atnet, u_char athost) return (tp->name); } -static struct tok skt2str[] = { +static const struct tok skt2str[] = { { rtmpSkt, "rtmp" }, /* routing table maintenance */ { nbpSkt, "nis" }, /* name info socket */ { echoSkt, "echo" }, /* AppleTalk echo protocol */ |