]> granicus.if.org Git - apache/commitdiff
Use APR's getopt.
authorBrian Havard <bjh@apache.org>
Tue, 19 Oct 1999 15:54:52 +0000 (15:54 +0000)
committerBrian Havard <bjh@apache.org>
Tue, 19 Oct 1999 15:54:52 +0000 (15:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84006 13f79535-47bb-0310-9956-ffa450edef68

server/main.c

index 8376eeb9c818cfed022746e744110da71e204242..ac8f18b08896b2a077ce59c84f6546322e9f3dcd 100644 (file)
@@ -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':