From 7468cd4ee038e6b775076118b45c9231e6e8e326 Mon Sep 17 00:00:00 2001 From: clhin <92746164+clhin@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:01:39 -0600 Subject: [PATCH] dispatch.c: const correctness --- dix/dispatch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dix/dispatch.c b/dix/dispatch.c index a523e9f142..c93703efbc 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -3948,7 +3948,7 @@ dixMarkClientException(ClientPtr client) * of the number of pixels that fit in a scanline pad unit?" * Note that ~0 is an invalid entry (mostly for the benefit of the reader). */ -static int answer[6][4] = { +static const int answer[6][4] = { /* pad pad pad pad */ /* 8 16 32 64 */ @@ -3965,7 +3965,7 @@ static int answer[6][4] = { * the answer array above given the number of bits per pixel?" * Note that ~0 is an invalid entry (mostly for the benefit of the reader). */ -static int indexForBitsPerPixel[33] = { +static const int indexForBitsPerPixel[33] = { ~0, 0, ~0, ~0, /* 1 bit per pixel */ 1, ~0, ~0, ~0, /* 4 bits per pixel */ 2, ~0, ~0, ~0, /* 8 bits per pixel */ @@ -3981,7 +3981,7 @@ static int indexForBitsPerPixel[33] = { * This array gives the bytesperPixel value for cases where the number * of bits per pixel is a multiple of 8 but not a power of 2. */ -static int answerBytesPerPixel[33] = { +static const int answerBytesPerPixel[33] = { ~0, 0, ~0, ~0, /* 1 bit per pixel */ 0, ~0, ~0, ~0, /* 4 bits per pixel */ 0, ~0, ~0, ~0, /* 8 bits per pixel */ @@ -3998,7 +3998,7 @@ static int answerBytesPerPixel[33] = { * the answer array above given the number of bits per scanline pad unit?" * Note that ~0 is an invalid entry (mostly for the benefit of the reader). */ -static int indexForScanlinePad[65] = { +static const int indexForScanlinePad[65] = { ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, 0, ~0, ~0, ~0, /* 8 bits per scanline pad unit */