diff src/utils.cc @ 3072:ca9677cdb62e

[project @ 1997-07-15 02:45:42 by jwe]
author jwe
date Tue, 15 Jul 1997 02:45:53 +0000
parents 2280158c4449
children 98d862e12945
line wrap: on
line diff
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -110,7 +110,7 @@
 // Ugh.
 
 int
-keyword_almost_match (const char **std, int *min_len, const string& s,
+keyword_almost_match (const char * const *std, int *min_len, const string& s,
 		      int min_toks_to_match, int max_toks)
 {
   int status = 0;
@@ -138,9 +138,9 @@
     return status;
 
 
-  char **to_match = new char * [max_toks + 1];
-  const char **s1 = std;
-  char **s2 = to_match;
+  const char **to_match = new const char * [max_toks + 1];
+  const char * const *s1 = std;
+  const char **s2 = to_match;
 
   if (! s1 || ! s2)
     goto done;