Changeset: fb798dcf39e9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fb798dcf39e9
Modified Files:
monetdb5/modules/mal/pcre.c
Branch: Feb2013
Log Message:
strcasestr: make more const, fix compilation on Solaris 10
diffs (16 lines):
diff --git a/monetdb5/modules/mal/pcre.c b/monetdb5/modules/mal/pcre.c
--- a/monetdb5/modules/mal/pcre.c
+++ b/monetdb5/modules/mal/pcre.c
@@ -110,10 +110,10 @@ typedef struct RE {
} RE;
#ifndef HAVE_STRCASESTR
-static char *
+static const char *
strcasestr (const char *haystack, const char *needle)
{
- char *p, *startn = 0, *np = 0;
+ const char *p, *np = 0, *startn = 0;
for (p = haystack; *p; p++) {
if (np) {
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list