projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f10edbb
)
Reduce indirection in parse_header_time()
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 24 Nov 2012 13:57:30 +0000
(13:57 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 24 Nov 2012 13:57:30 +0000
(13:57 +0000)
parsers.c
patch
|
blob
|
history
diff --git
a/parsers.c
b/parsers.c
index
c520d0a
..
2f3b4f4
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-1,4
+1,4
@@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.26
3 2012/11/11 12:38:4
2 fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.26
4 2012/11/11 12:41:1
2 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@
-4125,7
+4125,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.
*/
* attempt to work around GNU libc's strptime()
* reporting negative year values when using %Y.
*/
- static const char
* const time_formats[
] = {
+ static const char
time_formats[][22
] = {
/* Tue, 02-Jun-37 20:00:00 */
"%a, %d-%b-%y %H:%M:%S",
/* Tue, 02 Jun 2037 20:00:00 */
/* Tue, 02-Jun-37 20:00:00 */
"%a, %d-%b-%y %H:%M:%S",
/* Tue, 02 Jun 2037 20:00:00 */