mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-29 02:31:18 +00:00
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:
parent
6869efae74
commit
5623c27700
12 changed files with 33 additions and 28 deletions
|
|
@ -236,7 +236,7 @@ DoSimpleClip (BoxPtr a_dst_box,
|
|||
static Bool
|
||||
ephyrLocalAtomToHost (int a_local_atom, int *a_host_atom)
|
||||
{
|
||||
char *atom_name=NULL;
|
||||
const char *atom_name=NULL;
|
||||
int host_atom=None ;
|
||||
|
||||
EPHYR_RETURN_VAL_IF_FAIL (a_host_atom, FALSE) ;
|
||||
|
|
|
|||
Loading…
Reference in a new issue