[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29123: [PATCH] grep: mark matchers table const
From: |
Zev Weiss |
Subject: |
bug#29123: [PATCH] grep: mark matchers table const |
Date: |
Fri, 3 Nov 2017 03:03:43 -0500 |
* src/grep.c (matchers): Mark const.
---
src/grep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/grep.c b/src/grep.c
index 2277a60..0643a7e 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -2003,7 +2003,7 @@ if any error occurs and -q is not given, the exit status
is 2.\n"));
/* Pattern compilers and matchers. */
-static struct
+static const struct
{
char const name[12];
int syntax; /* used if compile == GEAcompile */
--
2.15.0
- bug#29123: [PATCH] grep: mark matchers table const,
Zev Weiss <=