From e6b1c1fada19268af559d89375989973729fdb19 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 3 Oct 2008 15:47:50 -0400 Subject: [PATCH] const cleanup --- dix/main.c | 2 +- hw/xquartz/quartz.c | 2 +- os/io.c | 4 +--- 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) diff --git a/os/io.c b/os/io.c index d022aac88..40f69cf28 100644 --- a/os/io.c +++ b/os/io.c @@ -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);