summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-05-28 13:54:47 +0300
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2007-06-03 18:38:42 +0300
commit94361cbba7f866144691f6f5e9251a550e0e0cb8 (patch)
treed26592ad81e351c027722b335cd37daaf51aedc5 /hw
parente5ce982381c4092252d6b55fcefcc9a3cd21e656 (diff)
XFree86: Input: Perform case-insensitive comparisons on option names
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/common/xf86Xinput.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 2d0a37674..5eede084d 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -329,7 +329,7 @@ NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev)
return BadAlloc;
for (option = options; option; option = option->next) {
- if (strcmp(option->key, "driver") == 0) {
+ if (strcasecmp(option->key, "driver") == 0) {
if (idev->driver) {
rval = BadRequest;
goto unwind;
@@ -352,8 +352,8 @@ NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev)
goto unwind;
}
}
- if (strcmp(option->key, "name") == 0 ||
- strcmp(option->key, "identifier") == 0) {
+ if (strcasecmp(option->key, "name") == 0 ||
+ strcasecmp(option->key, "identifier") == 0) {
if (idev->identifier) {
rval = BadRequest;
goto unwind;