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];