]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
We don't want ctype.h, but we do want ap_ctype.h so that we can get the
authorJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 18 Jun 2002 01:04:41 +0000 (01:04 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 18 Jun 2002 01:04:41 +0000 (01:04 +0000)
ap_isspace macro.

Also remove needless cast to unsigned char as ap_isspace does that for us.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95747 13f79535-47bb-0310-9956-ffa450edef68

src/ap/ap_strtol.c

index 9d5b2a4d9998811db4a54624d3947ba0b56d0d74..1a2e4e9f6a64fe982d20f50614d9f3136f149697 100644 (file)
@@ -90,9 +90,9 @@
 
 
 #include <limits.h>
-#include <ctype.h>
 #include <errno.h>
 #include <stdlib.h>
+#include "ap_ctype.h"
 
 
 /*
@@ -121,7 +121,7 @@ ap_strtol(nptr, endptr, base)
        s = nptr;
        do {
                c = *s++;
-       } while (ap_isspace((unsigned char)c));
+       } while (ap_isspace(c));
        if (c == '-') {
                neg = 1;
                c = *s++;