From 5623c27700b7b23a8dbbd8c8f45e5d4fa0c667e3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 2 Feb 2009 19:25:14 -0800 Subject: 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 Acked-by: Peter Hutterer --- hw/kdrive/ephyr/ephyrvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/kdrive') diff --git a/hw/kdrive/ephyr/ephyrvideo.c b/hw/kdrive/ephyr/ephyrvideo.c index c4eb06607..5058ebe03 100644 --- a/hw/kdrive/ephyr/ephyrvideo.c +++ b/hw/kdrive/ephyr/ephyrvideo.c @@ -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) ; -- cgit v1.2.3