diff options
author | kris <kris@FreeBSD.org> | 2000-11-26 11:07:45 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-11-26 11:07:45 +0000 |
commit | b64f677da6a8f3cbce3b1c8a085c7992e947b487 (patch) | |
tree | be702b9053cbac86e3cfcc0be9bd7d7620c6332f /usr.bin | |
parent | 0bec2472fdbc599d7de044c8672b653d89153217 (diff) | |
download | FreeBSD-src-b64f677da6a8f3cbce3b1c8a085c7992e947b487.zip FreeBSD-src-b64f677da6a8f3cbce3b1c8a085c7992e947b487.tar.gz |
Constify
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/yacc/defs.h | 1 | ||||
-rw-r--r-- | usr.bin/yacc/output.c | 1 | ||||
-rw-r--r-- | usr.bin/yacc/reader.c | 2 |
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)); |