Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B41549FCB for ; Thu, 2 Feb 2012 11:25:30 +0000 (UTC) Received: (qmail 67620 invoked by uid 500); 2 Feb 2012 11:25:30 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 67555 invoked by uid 500); 2 Feb 2012 11:25:29 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 67545 invoked by uid 99); 2 Feb 2012 11:25:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 11:25:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 11:25:26 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id DB8562388865 for ; Thu, 2 Feb 2012 11:25:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1239549 - /subversion/trunk/tools/client-side/svnmucc/svnmucc.c Date: Thu, 02 Feb 2012 11:25:05 -0000 To: commits@subversion.apache.org From: stsp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120202112505.DB8562388865@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stsp Date: Thu Feb 2 11:25:05 2012 New Revision: 1239549 URL: http://svn.apache.org/viewvc?rev=1239549&view=rev Log: Fix a shadowed symbol problem in svnmucc. * tools/client-side/svnmucc/svnmucc.c (main): Rename local variable 'getopt' to 'opts' to avoid a name clash with the POSIX getopt() function. Resolves a compiler warning on my system. Modified: subversion/trunk/tools/client-side/svnmucc/svnmucc.c Modified: subversion/trunk/tools/client-side/svnmucc/svnmucc.c URL: http://svn.apache.org/viewvc/subversion/trunk/tools/client-side/svnmucc/svnmucc.c?rev=1239549&r1=1239548&r2=1239549&view=diff ============================================================================== --- subversion/trunk/tools/client-side/svnmucc/svnmucc.c (original) +++ subversion/trunk/tools/client-side/svnmucc/svnmucc.c Thu Feb 2 11:25:05 2012 @@ -826,7 +826,7 @@ main(int argc, const char **argv) sizeof(struct action *)); const char *anchor = NULL; svn_error_t *err = SVN_NO_ERROR; - apr_getopt_t *getopt; + apr_getopt_t *opts; enum { config_dir_opt = SVN_OPT_FIRST_LONGOPT_ID, config_inline_opt, @@ -866,15 +866,15 @@ main(int argc, const char **argv) config_options = apr_array_make(pool, 0, sizeof(svn_cmdline__config_argument_t*)); - apr_getopt_init(&getopt, pool, argc, argv); - getopt->interleave = 1; + apr_getopt_init(&opts, pool, argc, argv); + opts->interleave = 1; while (1) { int opt; const char *arg; const char *opt_arg; - apr_status_t status = apr_getopt_long(getopt, options, &opt, &arg); + apr_status_t status = apr_getopt_long(opts, options, &opt, &arg); if (APR_STATUS_IS_EOF(status)) break; if (status != APR_SUCCESS) @@ -957,7 +957,7 @@ main(int argc, const char **argv) no_auth_cache = TRUE; break; case version_opt: - SVN_INT_ERR(display_version(getopt, pool)); + SVN_INT_ERR(display_version(opts, pool)); exit(EXIT_SUCCESS); break; case 'h': @@ -968,10 +968,10 @@ main(int argc, const char **argv) /* Copy the rest of our command-line arguments to an array, UTF-8-ing them along the way. */ - action_args = apr_array_make(pool, getopt->argc, sizeof(const char *)); - while (getopt->ind < getopt->argc) + action_args = apr_array_make(pool, opts->argc, sizeof(const char *)); + while (opts->ind < opts->argc) { - const char *arg = getopt->argv[getopt->ind++]; + const char *arg = opts->argv[opts->ind++]; if ((err = svn_utf_cstring_to_utf8(&(APR_ARRAY_PUSH(action_args, const char *)), arg, pool)))