Imported Upstream version 2.5.0
[debian/amanda] / regex-src / regexec.c
index 71c6d3abe0c8aa3251c512b3d04289760dafe2a3..0e86b37312c6c779ae8bdb6bbe2ed839096b984f 100644 (file)
@@ -16,7 +16,9 @@
 #include "utils.h"
 #include "regex2.h"
 
+#ifndef NDEBUG
 static int nope = 0;           /* for use in asserts; shuts lint up */
+#endif
 
 /* macros for manipulating states, small version */
 #define        states  long
@@ -132,7 +134,7 @@ int eflags;
        eflags = GOODFLAGS(eflags);
 
        if (g->nstates <= CHAR_BIT*sizeof(states1) && !(eflags&REG_LARGE))
-               return(smatcher(g, (char *)string, nmatch, pmatch, eflags));
+               return(smatcher(g, string, nmatch, pmatch, eflags));
        else
-               return(lmatcher(g, (char *)string, nmatch, pmatch, eflags));
+               return(lmatcher(g, string, nmatch, pmatch, eflags));
 }