[libxml2] Both args of xmlStrcasestr are const



commit fcf2457d2054af07c8b472f83efceb7985141fbc
Author: Daniel Veillard <veillard redhat com>
Date:   Wed Aug 12 23:02:08 2009 +0200

    Both args of xmlStrcasestr are const
    
    * include/libxml/xmlstring.h xmlstring.c: fix the constness of the
      second arg of xmlStrcasestr()

 include/libxml/xmlstring.h |    2 +-
 xmlstring.c                |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/include/libxml/xmlstring.h b/include/libxml/xmlstring.h
index 1dfc5ea..0bc6888 100644
--- a/include/libxml/xmlstring.h
+++ b/include/libxml/xmlstring.h
@@ -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);
diff --git a/xmlstring.c b/xmlstring.c
index 4f3b373..910f244 100644
--- a/xmlstring.c
+++ b/xmlstring.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]