commit ebbf25eb5bb006cd58ad5dd76d490eb2d0db7d76
parent 4f86276385dfd9fcbac0b7d774a8f69d9fea7bcf
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Mon, 3 Oct 2016 14:31:42 +0000
daemon.c: fix compiling with new ITC
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -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))
diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h
@@ -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)
/**