Skip to content

Commit 594d057

Browse files
clhinmetux
authored andcommitted
xkb.c: const correctness
1 parent 2fff53d commit 594d057

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

xkb/xkb.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5652,15 +5652,15 @@ ProcXkbPerClientFlags(ClientPtr client)
56525652

56535653
/* all latin-1 alphanumerics, plus parens, minus, underscore, slash */
56545654
/* and wildcards */
5655-
static unsigned char componentSpecLegal[] = {
5655+
static unsigned const char componentSpecLegal[] = {
56565656
0x00, 0x00, 0x00, 0x00, 0x00, 0xa7, 0xff, 0x87,
56575657
0xfe, 0xff, 0xff, 0x87, 0xfe, 0xff, 0xff, 0x07,
56585658
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
56595659
0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0xff
56605660
};
56615661

56625662
/* same as above but accepts percent, plus and bar too */
5663-
static unsigned char componentExprLegal[] = {
5663+
static unsigned const char componentExprLegal[] = {
56645664
0x00, 0x00, 0x00, 0x00, 0x20, 0xaf, 0xff, 0x87,
56655665
0xfe, 0xff, 0xff, 0x87, 0xfe, 0xff, 0xff, 0x17,
56665666
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -5673,7 +5673,8 @@ GetComponentSpec(ClientPtr client, xkbGetKbdByNameReq *stuff,
56735673
{
56745674
int len;
56755675
register int i;
5676-
unsigned char *wire, *str, *tmp, *legal;
5676+
unsigned char *wire, *str, *tmp;
5677+
const unsigned char *legal;
56775678

56785679
if (allowExpr)
56795680
legal = &componentExprLegal[0];

0 commit comments

Comments
 (0)