From 2ae427e697ffb6598de6e19b29c231fc0d6bb8dc Mon Sep 17 00:00:00 2001 From: Jean-Frederic Clere Date: Wed, 6 Mar 2024 12:14:46 +0000 Subject: [PATCH] optarg is from unistd.h, use opt_arg from apr_getopt(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916148 13f79535-47bb-0310-9956-ffa450edef68 --- support/ab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/ab.c b/support/ab.c index 664c4f8bb1d..3ff229de3a8 100644 --- a/support/ab.c +++ b/support/ab.c @@ -3068,7 +3068,7 @@ int main(int argc, const char * const argv[]) keepalive = 1; break; case 'o': - src_address = strdup(optarg); + src_address = strdup(opt_arg); break; case 'q': heartbeatres = 0;