summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTerry Lambert <tlambert@chromium.org>2011-07-15 17:23:25 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2011-07-18 11:47:21 +1000
commitdfb19f91313eb99fdd7f31ff66844a02fd4b73ff (patch)
tree5902660ca623d96cac56aebb42cbac8b4283b3cd /src
parente2eabdd0bd6bc33d65ba61aeb30f2c59ec90f516 (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>
Diffstat (limited to 'src')
-rw-r--r--src/void.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/void.c b/src/void.c
index 0184893..b1225d6 100644
--- a/src/void.c
+++ b/src/void.c
@@ -171,6 +171,9 @@ xf86VoidControlProc(DeviceIntPtr device, int what)
case DEVICE_CLOSE:
device->public.on = FALSE;
break;
+
+ default:
+ return BadValue;
}
return Success;
}