httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1416121 - /httpd/httpd/trunk/support/rotatelogs.c
Date Sun, 02 Dec 2012 07:19:22 GMT
Author: jailletc36
Date: Sun Dec  2 07:19:22 2012
New Revision: 1416121

URL: http://svn.apache.org/viewvc?rev=1416121&view=rev
Log:
error[120] is already defined in this function. Just use it instead of shadowing.

Modified:
    httpd/httpd/trunk/support/rotatelogs.c

Modified: httpd/httpd/trunk/support/rotatelogs.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/rotatelogs.c?rev=1416121&r1=1416120&r2=1416121&view=diff
==============================================================================
--- httpd/httpd/trunk/support/rotatelogs.c (original)
+++ httpd/httpd/trunk/support/rotatelogs.c Sun Dec  2 07:19:22 2012
@@ -268,7 +268,6 @@ static void post_rotate(apr_pool_t *pool
         }
         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);



Mime
View raw message