]> granicus.if.org Git - apache/commitdiff
clean up some warnings on AIX
authorJeff Trawick <trawick@apache.org>
Mon, 12 Nov 2001 01:21:21 +0000 (01:21 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 12 Nov 2001 01:21:21 +0000 (01:21 +0000)
since apr_size_t isn't always int, we should use
APR_SIZE_T_FMT instead of %d

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91861 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 05f9748dc0e5b2ca63e0b8d2826cb9ad1dcc1ceb..a2172ba4eca7387ed49367b4a53d465be9b2ef71 100644 (file)
@@ -473,7 +473,7 @@ static void output_results(void)
     printf("Server Port:            %hd\n", port);
     printf("\n");
     printf("Document Path:          %s\n", path);
-    printf("Document Length:        %d bytes\n", doclen);
+    printf("Document Length:        %" APR_SIZE_T_FMT " bytes\n", doclen);
     printf("\n");
     printf("Concurrency Level:      %d\n", concurrency);
     printf("Time taken for tests:   %ld.%03ld seconds\n",
@@ -731,7 +731,7 @@ static void output_html_results(void)
           "<td colspan=2 %s>%s</td></tr>\n",
           trstring, tdstring, tdstring, path);
     printf("<tr %s><th colspan=2 %s>Document Length:</th>"
-          "<td colspan=2 %s>%d bytes</td></tr>\n",
+          "<td colspan=2 %s>%" APR_SIZE_T_FMT " bytes</td></tr>\n",
           trstring, tdstring, tdstring, doclen);
     printf("<tr %s><th colspan=2 %s>Concurrency Level:</th>"
           "<td colspan=2 %s>%d</td></tr>\n",
@@ -1302,14 +1302,14 @@ static void test(void)
 static void copyright(void)
 {
     if (!use_html) {
-       printf("This is ApacheBench, Version %s\n", AP_SERVER_BASEREVISION " <$Revision: 1.83 $> apache-2.0");
+       printf("This is ApacheBench, Version %s\n", AP_SERVER_BASEREVISION " <$Revision: 1.84 $> apache-2.0");
        printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
        printf("Copyright (c) 1998-2001 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", AP_SERVER_BASEREVISION, "$Revision: 1.83 $");
+       printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AP_SERVER_BASEREVISION, "$Revision: 1.84 $");
        printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
        printf(" Copyright (c) 1998-2001 The Apache Software Foundation, http://www.apache.org/<br>\n");
        printf("</p>\n<p>\n");