From 49a9249239b0dd105b83a101db6e32549978f0d5 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 29 Dec 2005 21:11:41 +0000 Subject: [PATCH] Make kdInputMachine static const, shrinks .data a bit. --- ChangeLog | 3 +++ hw/kdrive/src/kinput.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9bdee52a8..59b026f62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ * mi/misprite.c: Style fix, make SCREEN_EPILOGUE two arguments instead of three. + * hw/kdrive/src/kinput.c: + Make kdInputMachine static const, shrinks .data a bit. + 2005-12-29 Dave Airlie * hw/xfree86/os-support/bus/Pci.c: (pciByteSwap): diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index f21aa2d70..cfe89f13a 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -790,6 +790,7 @@ typedef struct _inputTransition { KdMouseState nextState; } KdInputTransition; +static const KdInputTransition kdInputMachine[num_input_states][num_input_class] = { /* start */ { @@ -1046,7 +1047,7 @@ KdQueueEvent (xEvent *ev) static void KdRunMouseMachine (KdMouseInfo *mi, KdInputClass c, xEvent *ev) { - KdInputTransition *t; + const KdInputTransition *t; int a; t = &kdInputMachine[mi->mouseState][c];