X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fregex.c;h=82ccd4575ddb8aa63156b6315787e1a0871f2682;hb=1d9a3e3de04d38b74a35a7f70785452d99afaeca;hp=7b89818e9a2b0abbb7fac160afb95837022e6aff;hpb=55e1d7ad25b8e035c6faaab7fc8685fb0e3ebc1b;p=libucw.git diff --git a/ucw/regex.c b/ucw/regex.c index 7b89818e..82ccd457 100644 --- a/ucw/regex.c +++ b/ucw/regex.c @@ -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 +#include +#include +#include #include #include @@ -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;