From: Paul Eggert Date: Sun, 20 Oct 2002 06:01:07 +0000 (+0000) Subject: (prepare): Use xstrdup to convert char const * to char *, to avoid GCC X-Git-Tag: BISON-1_875~440 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/bb33f19a4b26ac602083587bfe9aa632edb75275?ds=sidebyside (prepare): Use xstrdup to convert char const * to char *, to avoid GCC warning. --- diff --git a/src/output.c b/src/output.c index 6eb69ed5..658860ed 100644 --- a/src/output.c +++ b/src/output.c @@ -306,9 +306,9 @@ prepare_states (void) -/*----------------------------------. -| Output the user actions to OOUT. | -`----------------------------------*/ +/*---------------------------------. +| Output the user actions to OUT. | +`---------------------------------*/ static void user_actions_output (FILE *out) @@ -620,7 +620,7 @@ prepare (void) } /* Parse the skeleton file and output the needed parsers. */ - muscle_insert ("skeleton", skeleton); + muscle_insert ("skeleton", xstrdup (skeleton)); }