From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 4 Sep 2011 11:36:50 +0000 (+0000)
Subject: Constify the time_formats pointers in parse_header_time()
X-Git-Tag: v_3_0_18~104
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@edit-actions-list?a=commitdiff_plain;h=cf070381cf7d0850a09966b61bea9670a0b26ab0;p=privoxy.git

Constify the time_formats pointers in parse_header_time()
---

diff --git a/parsers.c b/parsers.c
index a6a721fa..2650fbb1 100644
--- a/parsers.c
+++ b/parsers.c
@@ -1,4 +1,4 @@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.231 2011/09/04 11:33:06 fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.232 2011/09/04 11:33:50 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@ -4013,7 +4013,7 @@ static jb_err parse_header_time(const char *header_time, time_t *result)
     * attempt to work around GNU libc's strptime()
     * reporting negative year values when using %Y.
     */
-   static const char *time_formats[] = {
+   static const char * const time_formats[] = {
       /* Tue, 02-Jun-37 20:00:00 */
       "%a, %d-%b-%y %H:%M:%S",
       /* Tue, 02 Jun 2037 20:00:00 */