summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-26 11:07:45 +0000
committerkris <kris@FreeBSD.org>2000-11-26 11:07:45 +0000
commitb64f677da6a8f3cbce3b1c8a085c7992e947b487 (patch)
treebe702b9053cbac86e3cfcc0be9bd7d7620c6332f /usr.bin/yacc
parent0bec2472fdbc599d7de044c8672b653d89153217 (diff)
downloadFreeBSD-src-b64f677da6a8f3cbce3b1c8a085c7992e947b487.zip
FreeBSD-src-b64f677da6a8f3cbce3b1c8a085c7992e947b487.tar.gz
Constify
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r--usr.bin/yacc/defs.h1
-rw-r--r--usr.bin/yacc/output.c1
-rw-r--r--usr.bin/yacc/reader.c2
3 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/yacc/defs.h b/usr.bin/yacc/defs.h
index a8d8113..43af00b 100644
--- a/usr.bin/yacc/defs.h
+++ b/usr.bin/yacc/defs.h
@@ -265,7 +265,6 @@ extern int nvars;
extern int ntags;
extern char unionized;
-extern char line_format[];
extern int start_symbol;
extern char **symbol_name;
diff --git a/usr.bin/yacc/output.c b/usr.bin/yacc/output.c
index 2130969..31bb4be 100644
--- a/usr.bin/yacc/output.c
+++ b/usr.bin/yacc/output.c
@@ -70,6 +70,7 @@ static void save_column __P((int, int));
static void sort_actions __P((void));
static void token_actions __P((void));
+static const char line_format[] = "#line %d \"%s\"\n";
static int nvectors;
static int nentries;
static short **froms;
diff --git a/usr.bin/yacc/reader.c b/usr.bin/yacc/reader.c
index 4e2e588..8fb38fa 100644
--- a/usr.bin/yacc/reader.c
+++ b/usr.bin/yacc/reader.c
@@ -75,7 +75,7 @@ bucket **plhs;
int name_pool_size;
char *name_pool;
-char line_format[] = "#line %d \"%s\"\n";
+static const char line_format[] = "#line %d \"%s\"\n";
static void add_symbol __P((void));
static void advance_to_start __P((void));
OpenPOWER on IntegriCloud