]> granicus.if.org Git - apache/commitdiff
Quiet some warnings.
authorBrian Havard <bjh@apache.org>
Wed, 26 Jan 2000 07:07:49 +0000 (07:07 +0000)
committerBrian Havard <bjh@apache.org>
Wed, 26 Jan 2000 07:07:49 +0000 (07:07 +0000)
- 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
server/vhost.c

index 1ccbacc85a17ab0e05147be7401471b0e390a42e..74608b2a141c4929c8521ae4a597f5a9cd976413 100644 (file)
@@ -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++;
         }
index e22a42abc9d7b8e2aa7255edac31b9595bc997a4..47eebf7cf511755c6e5285c8dc65f270b982d58a 100644 (file)
@@ -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;
            }
        }