From: Jean-Frederic Clere Date: Wed, 6 Mar 2024 12:14:46 +0000 (+0000) Subject: optarg is from unistd.h, use opt_arg from apr_getopt(). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ae427e697ffb6598de6e19b29c231fc0d6bb8dc;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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;