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*/);