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;
            }
        }
  
  
  

Reply via email to