Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Both args of xmlStrcasestr are const

* include/libxml/xmlstring.h xmlstring.c: fix the constness of the
  second arg of xmlStrcasestr()
  • Loading branch information...
commit fcf2457d2054af07c8b472f83efceb7985141fbc 1 parent 533ec0e
Veillard Daniel veillard authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  include/libxml/xmlstring.h
  2. +1 1  xmlstring.c
2  include/libxml/xmlstring.h
@@ -59,7 +59,7 @@ XMLPUBFUN const xmlChar * XMLCALL
59 59 const xmlChar *val);
60 60 XMLPUBFUN const xmlChar * XMLCALL
61 61 xmlStrcasestr (const xmlChar *str,
62   - xmlChar *val);
  62 + const xmlChar *val);
63 63 XMLPUBFUN int XMLCALL
64 64 xmlStrcmp (const xmlChar *str1,
65 65 const xmlChar *str2);
2  xmlstring.c
@@ -366,7 +366,7 @@ xmlStrstr(const xmlChar *str, const xmlChar *val) {
366 366 */
367 367
368 368 const xmlChar *
369   -xmlStrcasestr(const xmlChar *str, xmlChar *val) {
  369 +xmlStrcasestr(const xmlChar *str, const xmlChar *val) {
370 370 int n;
371 371
372 372 if (str == NULL) return(NULL);

0 comments on commit fcf2457

Please sign in to comment.
Something went wrong with that request. Please try again.