diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 00:24:30 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 00:32:25 -0700 |
commit | e84f2e87222879ca667c1fb3d1cb3236a1159d12 (patch) | |
tree | 811a62b78ef6ba09d9781fc3dd1159cb079b55b4 /src/gram.y | |
parent | b16ce9773e4da5897ab546de85e48a3ea58d0e00 (diff) |
Constification cleanup - fix dozens of gcc warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/gram.y')
-rw-r--r-- | src/gram.y | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -82,7 +82,7 @@ static char *Action = ""; static char *Name = ""; static MenuRoot *root, *pull = NULL; -static MenuRoot *GetRoot ( char *name, char *fore, char *back ); +static MenuRoot *GetRoot ( const char *name, const char *fore, const char *back ); static void GotButton ( int butt, int func ); static void GotKey ( char *key, int func ); static void GotTitleButton ( char *bitmapname, int func, Bool rightside ); @@ -660,7 +660,7 @@ number : NUMBER { $$ = $1; } %% void -yyerror(char *s) +yyerror(const char *s) { twmrc_error_prefix(); fprintf (stderr, "error in input file: %s\n", s ? s : ""); @@ -751,7 +751,7 @@ RemoveDQuote(char *str) *o = '\0'; } -static MenuRoot *GetRoot(char *name, char* fore, char *back) +static MenuRoot *GetRoot(const char *name, const char* fore, const char *back) { MenuRoot *tmp; |