Constify atom name strings
Changes MakeAtom to take a const char * and NameForAtom to return them, since many callers pass pointers to constant strings stored in read-only ELF sections. Updates in-tree callers as necessary to clear const mismatch warnings introduced by this change. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -901,7 +901,7 @@ ProcInternAtom(ClientPtr client)
|
||||
int
|
||||
ProcGetAtomName(ClientPtr client)
|
||||
{
|
||||
char *str;
|
||||
const char *str;
|
||||
xGetAtomNameReply reply;
|
||||
int len;
|
||||
REQUEST(xResourceReq);
|
||||
|
||||
Reference in New Issue
Block a user