aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-07 17:18:44 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-07 17:18:44 +0100
commit9b935deff6238c5e98ed954fb037e42d321d72ed (patch)
tree0709bd76b388c435e3c5a7a5351aa0a2a077e726
parent9ebe27e18d0f2bd20865027d838dcacb6891d1f6 (diff)
downloadlibmicrohttpd-9b935deff6238c5e98ed954fb037e42d321d72ed.tar.gz
libmicrohttpd-9b935deff6238c5e98ed954fb037e42d321d72ed.zip
documented to return zero on failure, not vice versa
-rw-r--r--src/microhttpd/mhd_send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 99e1af4c..b0c0842b 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -63,7 +63,7 @@ pre_cork_setsockopt (struct MHD_Connection *connection,
63 return; /* nothing to do *pre* syscall! */ 63 return; /* nothing to do *pre* syscall! */
64 ret = MHD_socket_cork_ (connection->socket_fd, 64 ret = MHD_socket_cork_ (connection->socket_fd,
65 true); 65 true);
66 if (0 == ret) 66 if (0 != ret)
67 { 67 {
68 connection->sk_cork_on = true; 68 connection->sk_cork_on = true;
69 return; 69 return;
@@ -150,7 +150,7 @@ post_cork_setsockopt (struct MHD_Connection *connection,
150 pre-syscall) */ 150 pre-syscall) */
151 ret = MHD_socket_cork_ (connection->socket_fd, 151 ret = MHD_socket_cork_ (connection->socket_fd,
152 false); 152 false);
153 if (0 == ret) 153 if (0 != ret)
154 { 154 {
155 connection->sk_cork_on = false; 155 connection->sk_cork_on = false;
156 return; 156 return;