From 3f31dc4004c5e0758e99a185578bd2697b3fd334 Mon Sep 17 00:00:00 2001 From: Brian Havard Date: Wed, 26 Jan 2000 07:07:49 +0000 Subject: [PATCH] Quiet some warnings. - 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 --- modules/http/http_request.c | 2 +- server/vhost.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/http/http_request.c b/modules/http/http_request.c index 1ccbacc85a..74608b2a14 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -222,7 +222,7 @@ static int get_path_info(request_rec *r) char *p; int iCount=0; p = path; - while (p = strchr(p,'/')) { + while ((p = strchr(p,'/')) != NULL) { p++; iCount++; } diff --git a/server/vhost.c b/server/vhost.c index e22a42abc9..47eebf7cf5 100644 --- a/server/vhost.c +++ b/server/vhost.c @@ -672,7 +672,7 @@ static void fix_hostname(request_rec *r) src = r->hostname; dst = host; while (*src) { - if (!isalnum(*src) && *src != '.' && *src != '-') { + if (!ap_isalnum(*src) && *src != '.' && *src != '-') { if (*src == ':') break; else @@ -684,7 +684,7 @@ static void fix_hostname(request_rec *r) /* check the port part */ if (*src++ == ':') { while (*src) { - if (!isdigit(*src++)) { + if (!ap_isdigit(*src++)) { goto bad; } }