From fa36071570461e73b57583e490d794334b038f48 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 10 Feb 2013 19:50:21 -0800 Subject: Mark num_known_extensions as a const, since the size is fixed at compile time Signed-off-by: Alan Coopersmith --- xdpyinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdpyinfo.c b/xdpyinfo.c index 3233b19..f161a97 100644 --- a/xdpyinfo.c +++ b/xdpyinfo.c @@ -1375,7 +1375,7 @@ static ExtensionPrintInfo known_extensions[] = /* add new extensions here */ }; -static int num_known_extensions = sizeof known_extensions / sizeof known_extensions[0]; +static const int num_known_extensions = sizeof known_extensions / sizeof known_extensions[0]; static void print_known_extensions(FILE *f) -- cgit v1.2.3