From: Jeff Trawick Date: Thu, 2 Nov 2000 02:12:34 +0000 (+0000) Subject: Get rid of some warnings on Solaris 8 by using APR's ctype macros: X-Git-Tag: APACHE_2_0_ALPHA_8~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93bdf51d342d7b1caa6c8dcd1e0de6432266486e;p=apache Get rid of some warnings on Solaris 8 by using APR's ctype macros: logresolve.c: In function `main': logresolve.c:327: warning: subscript has type `char' ab.c: In function `main': ab.c:1074: warning: subscript has type `char' ab.c:1087: warning: subscript has type `char' git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86793 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index a6f79c469e..0c64925a80 100644 --- a/support/ab.c +++ b/support/ab.c @@ -876,14 +876,14 @@ static void test(void) static void copyright(void) { if (!use_html) { - printf("This is ApacheBench, Version %s\n", AB_VERSION " <$Revision: 1.29 $> apache-2.0"); + printf("This is ApacheBench, Version %s\n", AB_VERSION " <$Revision: 1.30 $> apache-2.0"); printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n"); printf("Copyright (c) 1998-2000 The Apache Software Foundation, http://www.apache.org/\n"); printf("\n"); } else { printf("

\n"); - printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AB_VERSION, "$Revision: 1.29 $"); + printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AB_VERSION, "$Revision: 1.30 $"); printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
\n"); printf(" Copyright (c) 1998-2000 The Apache Software Foundation, http://www.apache.org/
\n"); printf("

\n

\n"); @@ -1071,7 +1071,7 @@ int main(int argc, char *const *argv) /* assume username passwd already to be in colon separated form. * Ready to be uu-encoded. */ - while(isspace(*optarg)) + while(apr_isspace(*optarg)) optarg++; l=ap_base64encode(tmp, optarg, strlen(optarg)); tmp[l]='\0'; @@ -1084,7 +1084,7 @@ int main(int argc, char *const *argv) /* * assume username passwd already to be in colon separated form. */ - while(isspace(*optarg)) + while(apr_isspace(*optarg)) optarg++; l=ap_base64encode(tmp, optarg, strlen(optarg)); tmp[l]='\0'; diff --git a/support/logresolve.c b/support/logresolve.c index 250fd5cb47..43fa47a549 100644 --- a/support/logresolve.c +++ b/support/logresolve.c @@ -324,7 +324,7 @@ int main (int argc, char *argv[]) if (line[0] == '\0') continue; entries++; - if (!isdigit(line[0])) { /* short cut */ + if (!apr_isdigit(line[0])) { /* short cut */ puts(line); withname++; continue;