From c4f6608b7d8d63191d15e1c0d2ac9bba37b6f9eb Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Wed, 25 Feb 2015 16:23:18 +0200 Subject: [PATCH] Constify ReplySwapPtr, 2kb to rodata --- dix/tables.c | 2 +- include/dixstruct.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dix/tables.c b/dix/tables.c index 3e22b65..888620d 100644 --- a/dix/tables.c +++ b/dix/tables.c @@ -724,7 +724,7 @@ EventSwapPtr EventSwapVector[128] = }; -ReplySwapPtr ReplySwapVector[256] = +const ReplySwapPtr ReplySwapVector[256] = { ReplyNotSwappd, ReplyNotSwappd, diff --git a/include/dixstruct.h b/include/dixstruct.h index 6734695..87527f2 100644 --- a/include/dixstruct.h +++ b/include/dixstruct.h @@ -188,7 +188,7 @@ int (* ProcVector[256]) (ClientPtr /*client*/); int (* SwappedProcVector[256]) (ClientPtr /*client*/); -extern ReplySwapPtr ReplySwapVector[256]; +extern const ReplySwapPtr ReplySwapVector[256]; int ProcBadRequest(ClientPtr /*client*/);