diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-05-19 09:55:53 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-05-19 09:55:53 +0000 |
commit | b749910e6ca4288854ea40d2e0f74602678ba72f (patch) | |
tree | 291fc9ac36207afa9e44a26ff4d529a5b44dc859 /tests/server | |
parent | eff36caea8bfcdc05be67a240d11a2387e8a0648 (diff) |
include ctype.h for isdigit()
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/sws.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c index df0a08da8..bf19b724a 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -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); |