summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-10 19:50:21 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-10 19:50:21 -0800
commitfa36071570461e73b57583e490d794334b038f48 (patch)
tree3784028a00a9533fe344654758619be5c98b6f5f
parent57a45f3b7bb745a082e459d965bee2b11e3bd7b6 (diff)
downloadxdpyinfo-fa36071570461e73b57583e490d794334b038f48.tar.gz
xdpyinfo-fa36071570461e73b57583e490d794334b038f48.tar.bz2
xdpyinfo-fa36071570461e73b57583e490d794334b038f48.zip
Mark num_known_extensions as a const, since the size is fixed at compile time
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xdpyinfo.c2
1 files changed, 1 insertions, 1 deletions
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)