libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 77db4d16b1ae42045785bd3c6a00fa969f08fb6a
parent 8289ed69b7c77305a32ea1a9803d26f8f85898a1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 17 Jun 2019 20:22:15 +0200

fix syntax

Diffstat:
Msrc/microhttpd/mhd_send.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -85,7 +85,7 @@ ssize_t MHD_send_on_connection_ (struct MHD_Connection *connection, const char *buffer, size_t buffer_size, - enum MHD_SendSocketOptions) + enum MHD_SendSocketOptions options) { size_t length, opt1, opt2; ssize_t num_bytes; @@ -94,7 +94,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection, MHD_socket s = connection->socket_fd; /* Get socket options, change/set options if necessary. */ - switch (MHD_SendSocketOptions) + switch (options) { /* No corking */ case MHD_SSO_NO_CORK: @@ -258,7 +258,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, size_t header_size, const char *buffer, size_t buffer_size, - enum MHD_SendSocketOptions) + enum MHD_SendSocketOptions options) { int errno = 0; MHD_socket s = connection->socket_fd; @@ -299,7 +299,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, // mss = tcp_.tcpi_snd_mss; } - switch (MHD_SendSocketOptions) + switch (options) { case MHD_SSO_NO_CORK: /* No corking */