diff options
author | Adam Jackson <ajax@redhat.com> | 2008-10-03 15:47:50 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-10-03 17:51:19 -0400 |
commit | e6b1c1fada19268af559d89375989973729fdb19 (patch) | |
tree | e84369d508dd5045da27e00377434281397348ca | |
parent | fe616f9230b672edb89fca7516e750dc1b20c690 (diff) |
const cleanup
-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); |