summaryrefslogtreecommitdiff
path: root/src/events
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-12-21 22:29:49 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-12-21 22:29:49 +0000
commit16ab2590d4ca3a4d7c9ce72b2ef3f4e62daff4e7 (patch)
treec42a259daf27cb77445b95c18d8e208acf34653a /src/events
parent99a601a856a2bd6c9974db589b0ef3f54e04aeca (diff)
downloadlibdom-16ab2590d4ca3a4d7c9ce72b2ef3f4e62daff4e7.tar.gz
libdom-16ab2590d4ca3a4d7c9ce72b2ef3f4e62daff4e7.tar.bz2
Fix build with GCC 4.6
svn path=/trunk/libdom/; revision=13317
Diffstat (limited to 'src/events')
-rw-r--r--src/events/keyboard_event.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/events/keyboard_event.c b/src/events/keyboard_event.c
index 72b6215..f67ff61 100644
--- a/src/events/keyboard_event.c
+++ b/src/events/keyboard_event.c
@@ -300,35 +300,35 @@ dom_exception _dom_parse_modifier_list(dom_string *modifier_list,
* the new token. */
if (*data == ' ' || *data == '\0') {
if (len == SLEN("AltGraph") &&
- strncmp(data, "AltGraph", len) == 0) {
+ strncmp(m, "AltGraph", len) == 0) {
*modifier_state = *modifier_state |
DOM_MOD_ALT_GRAPH;
} else if (len == SLEN("Alt") &&
- strncmp(data, "Alt", len) == 0) {
+ strncmp(m, "Alt", len) == 0) {
*modifier_state = *modifier_state |
DOM_MOD_ALT;
} else if (len == SLEN("CapsLock") &&
- strncmp(data, "CapsLock", len) == 0) {
+ strncmp(m, "CapsLock", len) == 0) {
*modifier_state = *modifier_state |
DOM_MOD_CAPS_LOCK;
} else if (len == SLEN("Control") &&
- strncmp(data, "Control", len) == 0) {
+ strncmp(m, "Control", len) == 0) {
*modifier_state = *modifier_state |
DOM_MOD_CTRL;
} else if (len == SLEN("Meta") &&
- strncmp(data, "Meta", len) == 0) {
+ strncmp(m, "Meta", len) == 0) {
*modifier_state = *modifier_state |
DOM_MOD_META;
} else if (len == SLEN("NumLock") &&
- strncmp(data, "NumLock", len) == 0) {
+ strncmp(m, "NumLock", len) == 0) {
*modifier_state = *modifier_state |
DOM_MOD_NUM_LOCK;
} else if (len == SLEN("Scroll") &&
- strncmp(data, "Scroll", len) == 0) {
+ strncmp(m, "Scroll", len) == 0) {
*modifier_state = *modifier_state |
DOM_MOD_SCROLL;
} else if (len == SLEN("Shift") &&
- strncmp(data, "Shift", len) == 0) {
+ strncmp(m, "Shift", len) == 0) {
*modifier_state = *modifier_state |
DOM_MOD_SHIFT;
}