Permalink
Browse files

Both args of xmlStrcasestr are const

* include/libxml/xmlstring.h xmlstring.c: fix the constness of the
  second arg of xmlStrcasestr()
  • Loading branch information...
1 parent 533ec0e commit fcf2457d2054af07c8b472f83efceb7985141fbc @veillard veillard committed Aug 12, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 include/libxml/xmlstring.h
  2. +1 −1 xmlstring.c
@@ -59,7 +59,7 @@ XMLPUBFUN const xmlChar * XMLCALL
const xmlChar *val);
XMLPUBFUN const xmlChar * XMLCALL
xmlStrcasestr (const xmlChar *str,
- xmlChar *val);
+ const xmlChar *val);
XMLPUBFUN int XMLCALL
xmlStrcmp (const xmlChar *str1,
const xmlChar *str2);
View
@@ -366,7 +366,7 @@ xmlStrstr(const xmlChar *str, const xmlChar *val) {
*/
const xmlChar *
-xmlStrcasestr(const xmlChar *str, xmlChar *val) {
+xmlStrcasestr(const xmlChar *str, const xmlChar *val) {
int n;
if (str == NULL) return(NULL);

0 comments on commit fcf2457

Please sign in to comment.