From 0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 7 Oct 2011 18:00:39 -0700 Subject: Add const attributes to fix gcc -Wwrite-strings warnings Signed-off-by: Alan Coopersmith --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 617191c..f1a093a 100644 --- a/main.c +++ b/main.c @@ -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; -- cgit v1.2.1