bjh 99/10/19 08:54:52
Modified: src/main http_main.c
Log:
Use APR's getopt.
Revision Changes Path
1.18 +1 -1 apache-2.0/src/main/http_main.c
Index: http_main.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/main/http_main.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- http_main.c 1999/10/13 20:27:55 1.17
+++ http_main.c 1999/10/19 15:54:52 1.18
@@ -296,7 +296,7 @@
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':