diff options
author | Guenter Knauf <fuankg@apache.org> | 2010-10-06 10:05:22 +0000 |
---|---|---|
committer | Guenter Knauf <fuankg@apache.org> | 2010-10-06 10:05:22 +0000 |
commit | 39a167fb32bed6458fa20055c61fd71a523165b2 (patch) | |
tree | 2f57e1dbc5d89ef3b411d56c6493fba935ecccfc /support/rotatelogs.c | |
parent | a304385afa9b4254786206ce255752fca063c03d (diff) | |
download | httpd-39a167fb32bed6458fa20055c61fd71a523165b2.tar.gz |
Renamed optarg -> opt_arg to avoid name clashes with system-own optarg;
removed leftover from IDE build times.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1004962 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/rotatelogs.c')
-rw-r--r-- | support/rotatelogs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support/rotatelogs.c b/support/rotatelogs.c index ecd5bed3ea..213005cc4c 100644 --- a/support/rotatelogs.c +++ b/support/rotatelogs.c @@ -433,7 +433,7 @@ int main (int argc, const char * const argv[]) apr_getopt_t *opt; apr_status_t rv; char c; - const char *optarg; + const char *opt_arg; const char *err = NULL; apr_app_initialize(&argc, &argv, NULL); @@ -457,13 +457,13 @@ int main (int argc, const char * const argv[]) apr_pool_create(&status.pool, NULL); apr_getopt_init(&opt, status.pool, argc, argv); - while ((rv = apr_getopt(opt, "lL:ftv", &c, &optarg)) == APR_SUCCESS) { + while ((rv = apr_getopt(opt, "lL:ftv", &c, &opt_arg)) == APR_SUCCESS) { switch (c) { case 'l': config.use_localtime = 1; break; case 'L': - config.linkfile = optarg; + config.linkfile = opt_arg; break; case 'f': config.force_open = 1; |