From db0dd36aefa0b5df80e6301d00b2406e7066452d Mon Sep 17 00:00:00 2001 From: Brian Havard Date: Tue, 19 Oct 1999 15:54:52 +0000 Subject: [PATCH] Use APR's getopt. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84006 13f79535-47bb-0310-9956-ffa450edef68 --- server/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.c b/server/main.c index 8376eeb9c8..ac8f18b088 100644 --- a/server/main.c +++ b/server/main.c @@ -296,7 +296,7 @@ API_EXPORT_NONSTD(int) main(int argc, char *argv[]) ap_server_post_read_config = ap_make_array(pcommands, 1, sizeof(char *)); ap_server_config_defines = ap_make_array(pcommands, 1, sizeof(char *)); - while ((c = getopt(argc, argv, "C:c:d:f:vVlLth")) != -1) { + while (ap_getopt(pcommands, argc, argv, "C:c:d:f:vVlLth", &c) == APR_SUCCESS) { char **new; switch (c) { case 'c': -- 2.40.0