]> granicus.if.org Git - apache/commitdiff
error[120] is already defined in this function. Just use it instead of shadowing.
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 2 Dec 2012 07:19:22 +0000 (07:19 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 2 Dec 2012 07:19:22 +0000 (07:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1416121 13f79535-47bb-0310-9956-ffa450edef68

support/rotatelogs.c

index a706a97e70c1ecbf18d96808a55fddfb1a3020ec..b4603fb865324ac700b12c7bb23a7245f4d90277 100644 (file)
@@ -268,7 +268,6 @@ static void post_rotate(apr_pool_t *pool, struct logfile *newlog,
         }
         rv = apr_file_link(newlog->name, config->linkfile);
         if (rv != APR_SUCCESS) {
-            char error[120];
             apr_strerror(rv, error, sizeof error);
             fprintf(stderr, "Error linking file %s to %s (%s)\n",
                     newlog->name, config->linkfile, error);