diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-17 20:22:15 +0200 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-06-25 08:01:47 +0000 |
commit | 77db4d16b1ae42045785bd3c6a00fa969f08fb6a (patch) | |
tree | bcc9f9300556326d61418c2647a4ffb1f1aa8044 | |
parent | 8289ed69b7c77305a32ea1a9803d26f8f85898a1 (diff) | |
download | libmicrohttpd-77db4d16b1ae42045785bd3c6a00fa969f08fb6a.tar.gz libmicrohttpd-77db4d16b1ae42045785bd3c6a00fa969f08fb6a.zip |
fix syntax
-rw-r--r-- | src/microhttpd/mhd_send.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index 70a9bc16..df276f00 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -85,7 +85,7 @@ ssize_t | |||
85 | MHD_send_on_connection_ (struct MHD_Connection *connection, | 85 | MHD_send_on_connection_ (struct MHD_Connection *connection, |
86 | const char *buffer, | 86 | const char *buffer, |
87 | size_t buffer_size, | 87 | size_t buffer_size, |
88 | enum MHD_SendSocketOptions) | 88 | enum MHD_SendSocketOptions options) |
89 | { | 89 | { |
90 | size_t length, opt1, opt2; | 90 | size_t length, opt1, opt2; |
91 | ssize_t num_bytes; | 91 | ssize_t num_bytes; |
@@ -94,7 +94,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection, | |||
94 | MHD_socket s = connection->socket_fd; | 94 | MHD_socket s = connection->socket_fd; |
95 | 95 | ||
96 | /* Get socket options, change/set options if necessary. */ | 96 | /* Get socket options, change/set options if necessary. */ |
97 | switch (MHD_SendSocketOptions) | 97 | switch (options) |
98 | { | 98 | { |
99 | /* No corking */ | 99 | /* No corking */ |
100 | case MHD_SSO_NO_CORK: | 100 | case MHD_SSO_NO_CORK: |
@@ -258,7 +258,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
258 | size_t header_size, | 258 | size_t header_size, |
259 | const char *buffer, | 259 | const char *buffer, |
260 | size_t buffer_size, | 260 | size_t buffer_size, |
261 | enum MHD_SendSocketOptions) | 261 | enum MHD_SendSocketOptions options) |
262 | { | 262 | { |
263 | int errno = 0; | 263 | int errno = 0; |
264 | MHD_socket s = connection->socket_fd; | 264 | MHD_socket s = connection->socket_fd; |
@@ -299,7 +299,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
299 | // mss = tcp_.tcpi_snd_mss; | 299 | // mss = tcp_.tcpi_snd_mss; |
300 | } | 300 | } |
301 | 301 | ||
302 | switch (MHD_SendSocketOptions) | 302 | switch (options) |
303 | { | 303 | { |
304 | case MHD_SSO_NO_CORK: | 304 | case MHD_SSO_NO_CORK: |
305 | /* No corking */ | 305 | /* No corking */ |