]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
include ctype.h for isdigit()
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 May 2005 09:55:53 +0000 (09:55 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 19 May 2005 09:55:53 +0000 (09:55 +0000)
tests/server/sws.c

index df0a08da8e7b267cee4b5c0a0156555104d183a4..bf19b724ae88ff8d8a5cfaafd032615bf0ef69a8 100644 (file)
@@ -37,6 +37,7 @@
 #include <time.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#include <ctype.h>
 
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
@@ -228,7 +229,7 @@ int ProcessRequest(struct httprequest *req)
       ptr++; /* skip the slash */
 
       /* skip all non-numericals following the slash */
-      while(*ptr && !isdigit(*ptr))
+      while(*ptr && !isdigit((int)*ptr))
         ptr++;
 
       req->testno = strtol(ptr, &ptr, 10);