projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set p-version to 3.0.17
[privoxy.git]
/
parsers.c
diff --git
a/parsers.c
b/parsers.c
index
2f6f765
..
e2a70ea
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-1,4
+1,4
@@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.21
1 2010/05/01 18:20:50
fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.21
3 2010/06/13 12:26:04
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@
-2401,7
+2401,6
@@
static jb_err server_last_modified(struct client_state *csp, char **header)
#endif
struct tm *timeptr = NULL;
time_t now, last_modified;
#endif
struct tm *timeptr = NULL;
time_t now, last_modified;
- long int days, hours, minutes, seconds;
/*
* Are we messing with the Last-Modified header?
/*
* Are we messing with the Last-Modified header?
@@
-2467,6
+2466,7
@@
static jb_err server_last_modified(struct client_state *csp, char **header)
long int rtime = (long int)difftime(now, last_modified);
if (rtime)
{
long int rtime = (long int)difftime(now, last_modified);
if (rtime)
{
+ long int days, hours, minutes, seconds;
const int negative_delta = (rtime < 0);
if (negative_delta)
const int negative_delta = (rtime < 0);
if (negative_delta)
@@
-3153,7
+3153,6
@@
static jb_err client_if_modified_since(struct client_state *csp, char **header)
struct tm *timeptr = NULL;
time_t tm = 0;
const char *newval;
struct tm *timeptr = NULL;
time_t tm = 0;
const char *newval;
- long int hours, minutes, seconds;
char * endptr;
if ( 0 == strcmpic(*header, "If-Modified-Since: Wed, 08 Jun 1955 12:00:00 GMT"))
char * endptr;
if ( 0 == strcmpic(*header, "If-Modified-Since: Wed, 08 Jun 1955 12:00:00 GMT"))
@@
-3188,6
+3187,7
@@
static jb_err client_if_modified_since(struct client_state *csp, char **header)
}
else
{
}
else
{
+ long int hours, minutes, seconds;
long int rtime = strtol(newval, &endptr, 0);
const int negative_range = (rtime < 0);
long int rtime = strtol(newval, &endptr, 0);
const int negative_range = (rtime < 0);