]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/regex.c
PCRE regex: Fixed a harmless compilation warning.
[libucw.git] / ucw / regex.c
index 7b89818e9a2b0abbb7fac160afb95837022e6aff..82ccd4575ddb8aa63156b6315787e1a0871f2682 100644 (file)
@@ -8,10 +8,10 @@
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
-#include "ucw/chartype.h"
-#include "ucw/hashfunc.h"
-#include "ucw/regex.h"
+#include <ucw/lib.h>
+#include <ucw/chartype.h>
+#include <ucw/hashfunc.h>
+#include <ucw/regex.h>
 
 #include <stdio.h>
 #include <string.h>
@@ -185,7 +185,7 @@ rx_subst(regex *r, const char *by, const char *src, char *dest, uns destlen)
              uns j = *by++ - '0';
              if (j < r->real_matches && r->matches[2*j] >= 0)
                {
-                 char *s = src + r->matches[2*j];
+                 const char *s = src + r->matches[2*j];
                  uns i = r->matches[2*j+1] - r->matches[2*j];
                  if (dest + i >= end)
                    return -1;