daemon.c: fix compiling with new ITC

This commit is contained in:
Evgeny Grin (Karlson2k)
2016-10-03 14:31:42 +00:00
parent 4f86276385
commit ebbf25eb5b
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1370,7 +1370,7 @@ thread_main_handle_connection (void *data)
goto exit;
}
#if WINDOWS
if (! MHD_INVALID_PIPE_(deamon->wpipe) )
if (! MHD_INVALID_PIPE_(daemon->wpipe) )
{
if (! MHD_add_to_fd_set_ (MHD_pipe_get_read_fd_ (daemon->wpipe),
&rs,
@@ -2852,7 +2852,7 @@ MHD_select (struct MHD_Daemon *daemon,
{
FD_CLR (daemon->socket_fd,
&rs);
if (! MHD_add_to_fd_set_ (daemon->wpipe[0],
if (! MHD_add_to_fd_set_ (MHD_pipe_get_read_fd_(daemon->wpipe),
&rs,
&maxsock,
FD_SETSIZE))
+3 -3
View File
@@ -244,9 +244,9 @@ struct MHD_Pipe
/**
* Close emulated pipe FDs
*/
#define MHD_pipe_close_(fd) do { \
MHD_socket_close_ (pip.fd[0]); \
MHD_socket_close_ (pip.fd[1]); \
#define MHD_pipe_close_(pip) do { \
MHD_socket_close_ ((pip).fd[0]); \
MHD_socket_close_ ((pip).fd[1]); \
} while (0)
/**