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
parent e0f3633632
commit 5f285a30a1
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ change_property(ClientPtr client, DeviceIntPtr dev, Atom property, Atom type,
* If name is NULL, None is returned. * If name is NULL, None is returned.
*/ */
Atom Atom
XIGetKnownProperty(char *name) XIGetKnownProperty(const char *name)
{ {
int i; int i;

View File

@ -126,7 +126,7 @@ extern _X_EXPORT void XIUnregisterPropertyHandler(
); );
extern _X_EXPORT Atom XIGetKnownProperty( extern _X_EXPORT Atom XIGetKnownProperty(
char* name const char* name
); );
extern _X_EXPORT DeviceIntPtr XIGetDevice(xEvent *ev); extern _X_EXPORT DeviceIntPtr XIGetDevice(xEvent *ev);