diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 18:00:39 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 18:00:39 -0700 |
commit | 0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4 (patch) | |
tree | e61a1007a79f0d678aca72222918cec96e9f157c /main.c | |
parent | 97ae52f80f9e382917889bde1913367572e89012 (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -99,9 +99,9 @@ const char *includedirs[ MAXDIRS + 1 ], char *notdotdot[ MAXDIRS ]; static int cmdinc_count = 0; static char *cmdinc_list[ 2 * MAXINCFILES ]; -char *objprefix = ""; -char *objsuffix = OBJSUFFIX; -static char *startat = "# DO NOT DELETE"; +const char *objprefix = ""; +const char *objsuffix = OBJSUFFIX; +static const char *startat = "# DO NOT DELETE"; int width = 78; static boolean append = FALSE; boolean printed = FALSE; @@ -159,7 +159,7 @@ main(int argc, char *argv[]) char *makefile = NULL; struct filepointer *filecontent; const struct symtab *psymp = predefs; - char *endmarker = NULL; + const char *endmarker = NULL; char *defincdir = NULL; char **undeflist = NULL; int numundefs = 0, i; |