Sérgio Surkamp - 2007-01-15

Logged In: YES
user_id=1094870
Originator: NO

Patch to fix this compilation error:

--- libstrfunc-8.2/sf_sed/sed.c 2005-05-25 17:55:10.000000000 -0400
+++ libstrfunc-8.2-patch/sf_sed/sed.c 2007-01-15 16:46:19.000000000 -0400
@@ -100,7 +100,7 @@
}
*pstrt = 0;

- for((const char *)c = expr; *c; c++) {
+ for(c = (char *)expr; *c; c++) {
if(*c == '\\') {
if(*++c == dlm) {
*pstrt++ = dlm;
@@ -577,7 +577,7 @@

if(se->rexopt & REG_ICASE) {

- for((const char *)s = string; (cs=*s); s++) {
+ for(s = (char *)string; (cs=*s); s++) {
cs = tolower(cs);
for(c = sfr; *c; c++)
if(cs == *c)
@@ -594,7 +594,7 @@

} else {

- for((const char *)s = string; (cs=*s); s++) {
+ for(s = (char *)string; (cs=*s); s++) {
for(c = sfr; *c; c++)
if(cs == *c)
break;