summaryrefslogtreecommitdiff
path: root/usr.bin/make/parse.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2010-12-13 03:36:39 +0000
committerdholland <dholland@NetBSD.org>2010-12-13 03:36:39 +0000
commit120673f35f2cb2aeb11c3d8fa33a47d4b15b82c0 (patch)
tree67b4fdf99d654592b80a57179ad2495f992f4a59 /usr.bin/make/parse.c
parentec2c5e8a704cd5dbe2f7e94432947718ac3964f9 (diff)
Tables used by parser logic should be const.
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r--usr.bin/make/parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index a79cd4b4eae..05fa841075d 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.167 2010/12/13 03:35:13 dholland Exp $ */
+/* $NetBSD: parse.c,v 1.168 2010/12/13 03:36:39 dholland Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.167 2010/12/13 03:35:13 dholland Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.168 2010/12/13 03:36:39 dholland Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: parse.c,v 1.167 2010/12/13 03:35:13 dholland Exp $");
+__RCSID("$NetBSD: parse.c,v 1.168 2010/12/13 03:36:39 dholland Exp $");
#endif
#endif /* not lint */
#endif
@@ -281,7 +281,7 @@ Lst defIncPath; /* default for sysIncPath */
* the 'op' field is the operator to apply to the list of targets if the
* keyword is used as a source ("0" if the keyword isn't special as a source)
*/
-static struct {
+static const struct {
const char *name; /* Name of keyword */
ParseSpecial spec; /* Type when used as a target */
int op; /* Operator when used as a source */