git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2762
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#include "config.h"
-#include <ctype.h>
#include <errno.h>
#include <unistd.h>
#include <stdarg.h>
}
if (ptr != NULL) {
p = hp->hd[u].b + l;
- while (isspace(*p))
+ while (vct_issp(*p))
p++;
*ptr = p;
}
return (0);
}
-/*--------------------------------------------------------------------*/
+/*--------------------------------------------------------------------
+ * XXX: redo with http_GetHdrField() ?
+ */
const char *
http_DoConnection(struct http *hp)
}
ret = NULL;
for (; *p; p++) {
- if (isspace(*p))
+ if (vct_issp(*p))
continue;
if (*p == ',')
continue;
for (q = p + 1; *q; q++)
- if (*q == ',' || isspace(*q))
+ if (*q == ',' || vct_issp(*q))
break;
u = pdiff(p, q);
if (u == 5 && !strncasecmp(p, "close", u))