summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:00:39 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:00:39 -0700
commit0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4 (patch)
treee61a1007a79f0d678aca72222918cec96e9f157c /main.c
parent97ae52f80f9e382917889bde1913367572e89012 (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.c8
1 files changed, 4 insertions, 4 deletions
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;