Mark num_known_extensions as a const, since the size is fixed at compile time
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Mon, 11 Feb 2013 03:50:21 +0000 (19:50 -0800)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Mon, 11 Feb 2013 03:50:21 +0000 (19:50 -0800)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xdpyinfo.c

index 3233b19..f161a97 100644 (file)
@@ -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)