commit 704717f23fed7e4f70f6d5a2f9e1d9c89f6c39d7
parent 28cb2cd769f1b0266a54773f1c0cbbc8bbf46dec
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 30 Sep 2012 21:29:59 +0000
-getting rid of cparser warning
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
@@ -592,9 +592,12 @@ get_date_string (char *date)
SPRINTF (date,
"Date: %3s, %02u %3s %04u %02u:%02u:%02u GMT\r\n",
days[now.tm_wday % 7],
- now.tm_mday,
+ (unsigned int) now.tm_mday,
mons[now.tm_mon % 12],
- 1900 + now.tm_year, now.tm_hour, now.tm_min, now.tm_sec);
+ (unsigned int) (1900 + now.tm_year),
+ (unsigned int) now.tm_hour,
+ (unsigned int) now.tm_min,
+ (unsigned int) now.tm_sec);
}
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
@@ -1273,8 +1273,8 @@ MHD_get_timeout (struct MHD_Daemon *daemon,
{
if (0 != pos->connection_timeout)
{
- if (!have_timeout ||
- earliest_deadline > pos->last_activity + pos->connection_timeout)
+ if ( (! have_timeout) ||
+ (earliest_deadline > pos->last_activity + pos->connection_timeout) )
earliest_deadline = pos->last_activity + pos->connection_timeout;
#if HTTPS_SUPPORT
if ( (0 != (daemon->options & MHD_USE_SSL)) &&