X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fstatserv.c;h=487153e5649f8077f9d8a6cc607132bc04a40293;hp=7560058b4c75180d26c0d0e3319100c0cfca2a50;hb=4f3bcae93d51a26709c12b51261c3d95af610cb2;hpb=1fbd038d97d6e1bfe97270ecc17cca123bcc435c diff --git a/src/statserv.c b/src/statserv.c index 7560058..487153e 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -15,7 +15,6 @@ #include #include #include -#include #ifdef WIN32 #include @@ -64,6 +63,7 @@ #include "session.h" #include #include +#include static IOCHAN pListener = NULL; @@ -195,7 +195,7 @@ static char *nmem_dup_xml_content(NMEM n, xmlNodePtr ptr) cp = p->content; if (first) { - while(*cp && isspace(*cp)) + while(*cp && yaz_isspace(*cp)) cp++; if (*cp) first = 0; /* reset if we got non-whitespace out */ @@ -205,7 +205,7 @@ static char *nmem_dup_xml_content(NMEM n, xmlNodePtr ptr) } /* remove trailing whitespace */ cp = strlen((const char *)str) + str; - while (cp != str && isspace(cp[-1])) + while (cp != str && yaz_isspace(cp[-1])) cp--; *cp = '\0'; /* return resulting string */