From e3e6e938535532bfad175c1635256ab7fb3ac943 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 20 Oct 2013 12:36:31 -0700 Subject: Fix many const char * warnings from gcc Signed-off-by: Alan Coopersmith Reviewed-by: Jasper St. Pierre --- action.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'action.c') diff --git a/action.c b/action.c index 3b82e64..4623c0c 100644 --- a/action.c +++ b/action.c @@ -41,7 +41,7 @@ static ExprDef constFalse; /***====================================================================***/ static Bool -stringToAction(char *str, unsigned *type_rtrn) +stringToAction(const char *str, unsigned *type_rtrn) { if (str == NULL) return False; @@ -134,7 +134,7 @@ stringToAction(char *str, unsigned *type_rtrn) } static Bool -stringToField(char *str, unsigned *field_rtrn) +stringToField(const char *str, unsigned *field_rtrn) { if (str == NULL) @@ -1397,8 +1397,8 @@ HandleActionDef(ExprDef * def, int SetActionField(XkbDescPtr xkb, - char *elem, - char *field, + const char *elem, + const char *field, ExprDef * array_ndx, ExprDef * value, ActionInfo ** info_rtrn) { ActionInfo *new, *old; -- cgit v1.2.3