gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24151 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r24151 - libmicrohttpd/src/daemon
Date: Sun, 30 Sep 2012 23:29:59 +0200

Author: grothoff
Date: 2012-09-30 23:29:59 +0200 (Sun, 30 Sep 2012)
New Revision: 24151

Modified:
   libmicrohttpd/src/daemon/connection.c
   libmicrohttpd/src/daemon/daemon.c
Log:
-getting rid of cparser warning

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2012-09-30 21:29:45 UTC (rev 
24150)
+++ libmicrohttpd/src/daemon/connection.c       2012-09-30 21:29:59 UTC (rev 
24151)
@@ -592,9 +592,12 @@
   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);
 }
 
 

Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c   2012-09-30 21:29:45 UTC (rev 24150)
+++ libmicrohttpd/src/daemon/daemon.c   2012-09-30 21:29:59 UTC (rev 24151)
@@ -1273,8 +1273,8 @@
     {
       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)) &&




reply via email to

[Prev in Thread] Current Thread [Next in Thread]