diff options
-rw-r--r-- | dix/main.c | 2 | ||||
-rw-r--r-- | hw/xquartz/quartz.c | 2 | ||||
-rw-r--r-- | os/io.c | 4 | ||||
-rw-r--r-- | randr/rrscreen.c | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/dix/main.c b/dix/main.c index 4e838a9d1..f021511f9 100644 --- a/dix/main.c +++ b/dix/main.c @@ -461,7 +461,7 @@ SetVendorString(char *string) VendorString = string; } -static int padlength[4] = {0, 3, 2, 1}; +static const int padlength[4] = {0, 3, 2, 1}; #ifndef PANORAMIX static diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c index b17e56170..616c2b01e 100644 --- a/hw/xquartz/quartz.c +++ b/hw/xquartz/quartz.c @@ -186,7 +186,7 @@ void QuartzInitInput( #ifdef FAKE_RANDR -static int padlength[4] = {0, 3, 2, 1}; +static const int padlength[4] = {0, 3, 2, 1}; static void RREditConnectionInfo (ScreenPtr pScreen) @@ -576,9 +576,7 @@ ResetCurrentRequest(ClientPtr client) } } - /* lookup table for adding padding bytes to data that is read from - or written to the X socket. */ -static int padlength[4] = {0, 3, 2, 1}; +static const int padlength[4] = {0, 3, 2, 1}; /******************** * FlushAllOutput() diff --git a/randr/rrscreen.c b/randr/rrscreen.c index 8cce5ee25..9c2d09cc9 100644 --- a/randr/rrscreen.c +++ b/randr/rrscreen.c @@ -22,7 +22,7 @@ #include "randrstr.h" -static int padlength[4] = {0, 3, 2, 1}; +static const int padlength[4] = {0, 3, 2, 1}; static CARD16 RR10CurrentSizeID (ScreenPtr pScreen); |