xfree86/common: handle string constants in xf86Xinput configuration
authorKeith Packard <keithp@keithp.com>
Sun, 17 Nov 2013 07:28:48 +0000 (23:28 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 12 Jan 2014 18:14:50 +0000 (10:14 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
hw/xfree86/common/xf86Xinput.c

index f563052..5b0b6a1 100644 (file)
@@ -539,7 +539,7 @@ MatchAttrToken(const char *attr, struct xorg_list *patterns,
      * match. Each list entry is a separate Match line of the same type.
      */
     xorg_list_for_each_entry(group, patterns, entry) {
-        char *const *cur;
+        const char *const *cur;
         Bool match = FALSE;
 
         for (cur = group->values; *cur; cur++)
@@ -598,7 +598,7 @@ InputClassMatches(const XF86ConfInputClassPtr iclass, const InputInfoPtr idev,
      * See if any of the device's tags match any of the MatchTag tokens.
      */
     if (!xorg_list_is_empty(&iclass->match_tag)) {
-        char *const *tag;
+        const char *const *tag;
         Bool match;
 
         if (!attrs->tags)