summaryrefslogtreecommitdiff
path: root/include/exevents.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-01 16:56:18 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-23 12:15:06 -0800
commit5f285a30a1d6ffba82ebe5e08a0b68352bb51556 (patch)
treee4539ef2a90b2104687cd5932d9daeb019970b7a /include/exevents.h
parente0f3633632de609e60950aef07c82df534db7888 (diff)
Make XIGetKnownProperty take a const char * argument
Now that MakeAtom takes const char *, so can XIGetKnownProperty. Clears 71 warnings from gcc -Wwrite-strings of the form: devices.c:145:5: warning: passing argument 1 of 'XIGetKnownProperty' discards qualifiers from pointer target type ../include/exevents.h:128:23: note: expected 'char *' but argument is of type 'const char *' Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/exevents.h')
-rw-r--r--include/exevents.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exevents.h b/include/exevents.h
index 720fb2e5a..12ea37885 100644
--- a/include/exevents.h
+++ b/include/exevents.h
@@ -126,7 +126,7 @@ extern _X_EXPORT void XIUnregisterPropertyHandler(
);
extern _X_EXPORT Atom XIGetKnownProperty(
- char* name
+ const char* name
);
extern _X_EXPORT DeviceIntPtr XIGetDevice(xEvent *ev);