From: Jeff Trawick Date: Wed, 8 Nov 2000 18:41:45 +0000 (+0000) Subject: Get ab to build again by changing apr_set_remote_port() to apr_set_port(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3add65b05016bec2458c5fbfbfab7752baa079d8;p=apache Get ab to build again by changing apr_set_remote_port() to apr_set_port(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86872 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index 0c64925a80..007324f29b 100644 --- a/support/ab.c +++ b/support/ab.c @@ -494,7 +494,7 @@ static void start_connect(struct connection *c) if ((rv = apr_create_tcp_socket(&c->aprsock, cntxt)) != APR_SUCCESS) { apr_err("Socket:", rv); } - if ((rv = apr_set_remote_port(c->aprsock, port)) != APR_SUCCESS) { + if ((rv = apr_set_port(c->aprsock, APR_REMOTE, port)) != APR_SUCCESS) { apr_err("Port:", rv); } c->start = apr_now(); @@ -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.30 $> apache-2.0"); + printf("This is ApacheBench, Version %s\n", AB_VERSION " <$Revision: 1.31 $> 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.30 $"); + printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AB_VERSION, "$Revision: 1.31 $"); 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");