summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Lambert <tlambert@chromium.org>2011-07-15 17:23:22 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2011-07-18 11:54:28 +1000
commit38e4defe795776479594825859e101cd7cb5aa17 (patch)
tree571eab3d875c71d91a166fa55a8c42c497f8b6cd
parente8aa2ff0629111fbc32d71bbbc46b469c0c9a996 (diff)
Return proper default for unknown values in pInfo->device_control.
Signed-off-by: Terry Lambert <tlambert@chromium.org> Reviewed-by: Stephane Marchesin <marcheu@chromium.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/kbd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kbd.c b/src/kbd.c
index d89d234..19bafb8 100644
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -385,6 +385,9 @@ KbdProc(DeviceIntPtr device, int what)
pKbd->KbdOff(pInfo, what);
device->public.on = FALSE;
break;
+
+ default:
+ return BadValue;
}
return (Success);
}