From: Sander Temme Date: Sun, 8 Apr 2007 17:44:57 +0000 (+0000) Subject: The apr_port_t type is unsigned, but ab was using a signed format code in X-Git-Tag: 2.3.0~1845 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76e68a9686c00093a6f5a1cb36ac4d2b4d3acd05;p=thirdparty%2Fapache%2Fhttpd.git The apr_port_t type is unsigned, but ab was using a signed format code in 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 --- diff --git a/support/ab.c b/support/ab.c index 37bcb8a4a7a..0a008063970 100644 --- a/support/ab.c +++ b/support/ab.c @@ -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) "%s\n", trstring, tdstring, tdstring, hostname); printf("Server Port:" - "%hd\n", + "%hu\n", trstring, tdstring, tdstring, port); printf("Document Path:" "%s\n",