projects
/
platform
/
upstream
/
xdpyinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a45f3
)
Mark num_known_extensions as a const, since the size is fixed at compile time
author
Alan Coopersmith
<alan.coopersmith@oracle.com>
Mon, 11 Feb 2013 03:50:21 +0000
(19:50 -0800)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/xdpyinfo.c
b/xdpyinfo.c
index
3233b19
..
f161a97
100644
(file)
--- 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)