@@ -62,7 +62,7 @@ int util_strncmp(const char *one, const char *two, int n)
6262 return 1 ;
6363}
6464
65- char *util_strchr (char *sptr, char target, int l)
65+ const char *util_strchr (const char *sptr, char target, int l)
6666{
6767 if (!l) l = strlen (sptr);
6868 const char *eptr = sptr + l;
@@ -76,7 +76,7 @@ char *util_strchr(char *sptr, char target, int l)
7676}
7777
7878// utility function used to concat two strings..and reallocate string if neccessary
79- void util_concatstring (char *s, int slen, char *&d, int &dlen, int &dalloc)
79+ void util_concatstring (const char *s, int slen, char *&d, int &dlen, int &dalloc)
8080{
8181 int newbufsize = dalloc;
8282 while (dlen + slen + 1 > newbufsize)
@@ -408,7 +408,7 @@ Bool CXMLDocument::GetElementByPath(CXMLElement *telement, char *tpath)
408408 return False;
409409
410410 if (*sptr == ' /' ) sptr++;
411- char *nameend;
411+ const char *nameend;
412412 char *nextname = strchr (sptr, ' /' );
413413 if (!nextname)
414414 {
@@ -418,7 +418,7 @@ Bool CXMLDocument::GetElementByPath(CXMLElement *telement, char *tpath)
418418 isroot = True;
419419
420420 }
421- char *numpointer = util_strchr (sptr,' [' ,nextname-sptr);
421+ const char *numpointer = util_strchr (sptr,' [' ,nextname-sptr);
422422 if (numpointer)
423423 nameend = numpointer;
424424 else
0 commit comments