- 1 'suggest parentheses around assignment used as truth value'
- a few "subscript has type `char'"
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84519
13f79535-47bb-0310-9956-
ffa450edef68
char *p;
int iCount=0;
p = path;
- while (p = strchr(p,'/')) {
+ while ((p = strchr(p,'/')) != NULL) {
p++;
iCount++;
}
src = r->hostname;
dst = host;
while (*src) {
- if (!isalnum(*src) && *src != '.' && *src != '-') {
+ if (!ap_isalnum(*src) && *src != '.' && *src != '-') {
if (*src == ':')
break;
else
/* check the port part */
if (*src++ == ':') {
while (*src) {
- if (!isdigit(*src++)) {
+ if (!ap_isdigit(*src++)) {
goto bad;
}
}