Changeset: 5caede762d39 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5caede762d39
Modified Files:
monetdb5/modules/mal/pcre.c
Branch: Feb2013
Log Message:
strcasestr: make definition match GNU's
Define our fallback strcasestr with const arguments since we don't
change them, and hence can. It is necessary to allow compilation on
platforms that lack strcasestr, such as Solaris:
pcre.c:166:4: error: passing argument 1 of 'strcasestr' discards 'const'
qualifier from pointer target type [-Werror]
diffs (12 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
@@ -111,7 +111,7 @@ typedef struct RE {
#ifndef HAVE_STRCASESTR
static char *
-strcasestr (char *haystack, char *needle)
+strcasestr (static char *haystack, const char *needle)
{
char *p, *startn = 0, *np = 0;
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list