summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-11 13:06:48 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-17 08:33:11 -0700
commit4110fd5e57f5b42d37e821cf56ce5fa59728e3f2 (patch)
treeac34df60d110e638adcb9f468ab429cf1873f0cc
parentf5cb430f246850e8213fe5cd95b4ea44228f3c3b (diff)
Declare guesses const
As suggested by cppcheck: parse.c:163:19: style: Variable 'guesses' can be declared with const [constVariable] static int guesses[] = { 1, 4, 100, 1000, 1 }; ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 787b3e2..18739d7 100644
--- a/parse.c
+++ b/parse.c
@@ -160,7 +160,7 @@ ParseInput(DviWidget dw)
n = GetNumber(dw);
if (!dw->dvi.size_scale)
{
- static int guesses[] = { 1, 4, 100, 1000, 1 };
+ static const int guesses[] = { 1, 4, 100, 1000, 1 };
int i;
for (i = 0; i < 4; i++)