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>
This commit is contained in:
Alan Coopersmith 2011-11-01 16:56:18 -07:00
commit 5f285a30a1
2 changed files with 2 additions and 2 deletions

View file

@ -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);