diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-02-02 19:25:14 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-02-03 10:06:00 -0800 |
commit | 5623c27700b7b23a8dbbd8c8f45e5d4fa0c667e3 (patch) | |
tree | 5ef32d8457f859742bcf2aa12019306db49d5c25 /include/xkbsrv.h | |
parent | 6869efae74381e5305b2d6517bf286e3ef7fdcb7 (diff) |
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>
Diffstat (limited to 'include/xkbsrv.h')
-rw-r--r-- | include/xkbsrv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xkbsrv.h b/include/xkbsrv.h index 8f6a767d9..449722058 100644 --- a/include/xkbsrv.h +++ b/include/xkbsrv.h @@ -880,7 +880,7 @@ extern _X_EXPORT XkbGeometryPtr XkbLookupNamedGeometry( ); extern _X_EXPORT char * _XkbDupString( - char * /* str */ + const char * /* str */ ); extern _X_EXPORT void XkbConvertCase( |