Return-Path: Delivered-To: apache-cvs-archive@hyperreal.org Received: (qmail 28583 invoked by uid 6000); 26 Jan 2000 07:07:54 -0000 Received: (qmail 28567 invoked by uid 2016); 26 Jan 2000 07:07:52 -0000 Delivered-To: apcore-apache-2.0-cvs@apache.org Received: (qmail 28563 invoked by uid 240); 26 Jan 2000 07:07:51 -0000 Date: 26 Jan 2000 07:07:51 -0000 Message-ID: <20000126070751.28562.qmail@hyperreal.org> From: bjh@hyperreal.org To: apache-2.0-cvs@apache.org Subject: cvs commit: apache-2.0/src/main http_request.c http_vhost.c Sender: apache-cvs-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org bjh 00/01/25 23:07:51 Modified: src/main http_request.c http_vhost.c Log: Quiet some warnings. - 1 'suggest parentheses around assignment used as truth value' - a few "subscript has type `char'" Revision Changes Path 1.18 +1 -1 apache-2.0/src/main/http_request.c Index: http_request.c =================================================================== RCS file: /home/cvs/apache-2.0/src/main/http_request.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- http_request.c 2000/01/19 01:15:11 1.17 +++ http_request.c 2000/01/26 07:07:49 1.18 @@ -222,7 +222,7 @@ char *p; int iCount=0; p = path; - while (p = strchr(p,'/')) { + while ((p = strchr(p,'/')) != NULL) { p++; iCount++; } 1.13 +2 -2 apache-2.0/src/main/http_vhost.c Index: http_vhost.c =================================================================== RCS file: /home/cvs/apache-2.0/src/main/http_vhost.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- http_vhost.c 2000/01/19 01:15:12 1.12 +++ http_vhost.c 2000/01/26 07:07:49 1.13 @@ -672,7 +672,7 @@ 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 @@ /* check the port part */ if (*src++ == ':') { while (*src) { - if (!isdigit(*src++)) { + if (!ap_isdigit(*src++)) { goto bad; } }