From: Brian Havard Date: Tue, 19 Oct 1999 15:54:52 +0000 (+0000) Subject: Use APR's getopt. X-Git-Tag: 1.3.10~246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db0dd36aefa0b5df80e6301d00b2406e7066452d;p=apache Use APR's getopt. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84006 13f79535-47bb-0310-9956-ffa450edef68 --- 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':