diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-10 19:50:21 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-10 19:50:21 -0800 |
commit | fa36071570461e73b57583e490d794334b038f48 (patch) | |
tree | 3784028a00a9533fe344654758619be5c98b6f5f | |
parent | 57a45f3b7bb745a082e459d965bee2b11e3bd7b6 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |