]> granicus.if.org Git - apache/commitdiff
Get rid of some warnings on Solaris 8 by using APR's ctype macros:
authorJeff Trawick <trawick@apache.org>
Thu, 2 Nov 2000 02:12:34 +0000 (02:12 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 2 Nov 2000 02:12:34 +0000 (02:12 +0000)
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

support/ab.c
support/logresolve.c

index a6f79c469efcc589bb80580097c0f6176673b57a..0c64925a80db78897b895620a1f33319098f4401 100644 (file)
@@ -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("<p>\n");
-        printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AB_VERSION, "$Revision: 1.29 $");
+        printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AB_VERSION, "$Revision: 1.30 $");
         printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
         printf(" Copyright (c) 1998-2000 The Apache Software Foundation, http://www.apache.org/<br>\n");
         printf("</p>\n<p>\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';
index 250fd5cb474490be98e9c38c0016ab853a9a5b4b..43fa47a549a93f258e11f0b280993698fb0c6d71 100644 (file)
@@ -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;