The apr_port_t type is unsigned, but ab was using a signed format code in
authorSander Temme <sctemme@apache.org>
Sun, 8 Apr 2007 17:44:57 +0000 (17:44 +0000)
committerSander Temme <sctemme@apache.org>
Sun, 8 Apr 2007 17:44:57 +0000 (17:44 +0000)
its reports. PR 42070. Submitted by Takashi Sato serai  lans-tv.com,
reviewed by sctemme.

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

support/ab.c

index 37bcb8a4a7a42222f3ef072693968ff72c0827a1..0a00806397054c96ac8d5142b8386748528201fb 100644 (file)
@@ -744,7 +744,7 @@ static void output_results(int sig)
     printf("\n\n");
     printf("Server Software:        %s\n", servername);
     printf("Server Hostname:        %s\n", hostname);
-    printf("Server Port:            %hd\n", port);
+    printf("Server Port:            %hu\n", port);
 #ifdef USE_SSL
     if (is_ssl && ssl_info) {
         printf("SSL/TLS Protocol:       %s\n", ssl_info);
@@ -1007,7 +1007,7 @@ static void output_html_results(void)
        "<td colspan=2 %s>%s</td></tr>\n",
        trstring, tdstring, tdstring, hostname);
     printf("<tr %s><th colspan=2 %s>Server Port:</th>"
-       "<td colspan=2 %s>%hd</td></tr>\n",
+       "<td colspan=2 %s>%hu</td></tr>\n",
        trstring, tdstring, tdstring, port);
     printf("<tr %s><th colspan=2 %s>Document Path:</th>"
        "<td colspan=2 %s>%s</td></tr>\n",