diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-07 17:18:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-07 17:18:44 +0100 |
commit | 9b935deff6238c5e98ed954fb037e42d321d72ed (patch) | |
tree | 0709bd76b388c435e3c5a7a5351aa0a2a077e726 | |
parent | 9ebe27e18d0f2bd20865027d838dcacb6891d1f6 (diff) | |
download | libmicrohttpd-9b935deff6238c5e98ed954fb037e42d321d72ed.tar.gz libmicrohttpd-9b935deff6238c5e98ed954fb037e42d321d72ed.zip |
documented to return zero on failure, not vice versa
-rw-r--r-- | src/microhttpd/mhd_send.c | 4 |
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; |