commit d4168c4478bd1b1732fad06d7f3a188c5ddea4b7
parent b73339586b9b33d046cba69e7e66195dd39536bf
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Mon, 8 Jun 2015 22:06:01 +0000
fix used constant in send_param_adapter(), actually cosmetics only
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -1102,7 +1102,7 @@ send_param_adapter (struct MHD_Connection *connection,
if ( (connection->write_buffer_append_offset ==
connection->write_buffer_send_offset) &&
(NULL != connection->response) &&
- (MHD_INVALID_SOCKET != (fd = connection->response->fd)) )
+ (-1 != (fd = connection->response->fd)) )
{
/* can use sendfile */
offset = (off_t) connection->response_write_position + connection->response->fd_off;