diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index f43f071f..e66cd218 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -1878,6 +1878,7 @@ MHD_get_timeout (struct MHD_Daemon *daemon, | |||
1878 | #endif | 1878 | #endif |
1879 | 1879 | ||
1880 | have_timeout = MHD_NO; | 1880 | have_timeout = MHD_NO; |
1881 | earliest_deadline = 0; /* avoid compiler warnings */ | ||
1881 | for (pos = daemon->manual_timeout_head; NULL != pos; pos = pos->nextX) | 1882 | for (pos = daemon->manual_timeout_head; NULL != pos; pos = pos->nextX) |
1882 | { | 1883 | { |
1883 | if (0 != pos->connection_timeout) | 1884 | if (0 != pos->connection_timeout) |
@@ -2457,7 +2458,7 @@ MHD_epoll (struct MHD_Daemon *daemon, | |||
2457 | #endif | 2458 | #endif |
2458 | return MHD_NO; | 2459 | return MHD_NO; |
2459 | } | 2460 | } |
2460 | for (i=0;i<num_events;i++) | 2461 | for (i=0;i<(unsigned int) num_events;i++) |
2461 | { | 2462 | { |
2462 | if (NULL == events[i].data.ptr) | 2463 | if (NULL == events[i].data.ptr) |
2463 | continue; /* shutdown signal! */ | 2464 | continue; /* shutdown signal! */ |