[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35501 - libmicrohttpd/src/microhttpd
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35501 - libmicrohttpd/src/microhttpd |
Date: |
Sat, 4 Apr 2015 18:21:43 +0200 |
Author: grothoff
Date: 2015-04-04 18:21:43 +0200 (Sat, 04 Apr 2015)
New Revision: 35501
Modified:
libmicrohttpd/src/microhttpd/daemon.c
Log:
-indentation, bracketing
Modified: libmicrohttpd/src/microhttpd/daemon.c
===================================================================
--- libmicrohttpd/src/microhttpd/daemon.c 2015-04-04 16:08:52 UTC (rev
35500)
+++ libmicrohttpd/src/microhttpd/daemon.c 2015-04-04 16:21:43 UTC (rev
35501)
@@ -796,7 +796,6 @@
struct pollfd p[1];
#endif
-
timeout = con->daemon->connection_timeout;
while ( (MHD_YES != con->daemon->shutdown) &&
(MHD_CONNECTION_CLOSED != con->state) )
@@ -831,19 +830,23 @@
switch (con->event_loop_info)
{
case MHD_EVENT_LOOP_INFO_READ:
- if (MHD_YES != add_to_fd_set (con->socket_fd, &rs, &max,
FD_SETSIZE))
+ if (MHD_YES !=
+ add_to_fd_set (con->socket_fd, &rs, &max, FD_SETSIZE))
err_state = 1;
break;
case MHD_EVENT_LOOP_INFO_WRITE:
- if (MHD_YES != add_to_fd_set (con->socket_fd, &ws, &max,
FD_SETSIZE))
+ if (MHD_YES !=
+ add_to_fd_set (con->socket_fd, &ws, &max, FD_SETSIZE))
err_state = 1;
- if (con->read_buffer_size > con->read_buffer_offset &&
- MHD_YES != add_to_fd_set (con->socket_fd, &rs, &max,
FD_SETSIZE))
+ if ( (con->read_buffer_size > con->read_buffer_offset) &&
+ (MHD_YES !=
+ add_to_fd_set (con->socket_fd, &rs, &max, FD_SETSIZE)) )
err_state = 1;
break;
case MHD_EVENT_LOOP_INFO_BLOCK:
- if (con->read_buffer_size > con->read_buffer_offset &&
- MHD_YES != add_to_fd_set (con->socket_fd, &rs, &max,
FD_SETSIZE))
+ if ( (con->read_buffer_size > con->read_buffer_offset) &&
+ (MHD_YES !=
+ add_to_fd_set (con->socket_fd, &rs, &max, FD_SETSIZE)) )
err_state = 1;
tv.tv_sec = 0;
tv.tv_usec = 0;
@@ -920,7 +923,8 @@
if (EINTR == MHD_socket_errno_)
continue;
#if HAVE_MESSAGES
- MHD_DLOG (con->daemon, "Error during poll: `%s'\n",
+ MHD_DLOG (con->daemon,
+ "Error during poll: `%s'\n",
MHD_socket_last_strerr_ ());
#endif
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35501 - libmicrohttpd/src/microhttpd,
gnunet <=