From 7de355927bb4dac90db045d52a69bf95c841b807 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Tue, 24 Sep 2013 20:46:24 +0400 Subject: 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. --- print-sunrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print-sunrpc.c') diff --git a/print-sunrpc.c b/print-sunrpc.c index 21cd85a9..195825d7 100644 --- a/print-sunrpc.c +++ b/print-sunrpc.c @@ -68,7 +68,7 @@ static const char rcsid[] _U_ = #include "rpc_msg.h" #include "pmap_prot.h" -static struct tok proc2str[] = { +static const struct tok proc2str[] = { { SUNRPC_PMAPPROC_NULL, "null" }, { SUNRPC_PMAPPROC_SET, "set" }, { SUNRPC_PMAPPROC_UNSET, "unset" }, -- cgit v1.2.1