You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by je...@apache.org on 2002/06/18 03:04:41 UTC

cvs commit: apache-1.3/src/ap ap_strtol.c

jerenkrantz    2002/06/17 18:04:41

  Modified:    src/ap   ap_strtol.c
  Log:
  We don't want ctype.h, but we do want ap_ctype.h so that we can get the
  ap_isspace macro.
  
  Also remove needless cast to unsigned char as ap_isspace does that for us.
  
  Revision  Changes    Path
  1.2       +2 -2      apache-1.3/src/ap/ap_strtol.c
  
  Index: ap_strtol.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/ap/ap_strtol.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ap_strtol.c	18 Jun 2002 00:34:35 -0000	1.1
  +++ ap_strtol.c	18 Jun 2002 01:04:41 -0000	1.2
  @@ -90,9 +90,9 @@
   
   
   #include <limits.h>
  -#include <ctype.h>
   #include <errno.h>
   #include <stdlib.h>
  +#include "ap_ctype.h"
   
   
   /*
  @@ -121,7 +121,7 @@
   	s = nptr;
   	do {
   		c = *s++;
  -	} while (ap_isspace((unsigned char)c));
  +	} while (ap_isspace(c));
   	if (c == '-') {
   		neg = 1;
   		c = *s++;