aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-02 22:13:00 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-02 22:13:00 +0200
commitbf7c90c30f7c6c0227fb873bfb1f361f03e6b1f7 (patch)
tree8d2fe460c1432e87b1b11790627cc7be8adabda3
parent140ddc5278469da8273266903e73d3459db85569 (diff)
downloadlibmicrohttpd-bf7c90c30f7c6c0227fb873bfb1f361f03e6b1f7.tar.gz
libmicrohttpd-bf7c90c30f7c6c0227fb873bfb1f361f03e6b1f7.zip
clarify return value is intentionally ignored
-rw-r--r--src/microhttpd/connection.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 5c874d99..f6c1dbb5 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -924,12 +924,12 @@ MHD_lookup_connection_value (struct MHD_Connection *connection,
924 const char *value; 924 const char *value;
925 925
926 value = NULL; 926 value = NULL;
927 MHD_lookup_connection_value_n (connection, 927 (void) MHD_lookup_connection_value_n (connection,
928 kind, 928 kind,
929 key, 929 key,
930 (NULL == key) ? 0 : strlen(key), 930 (NULL == key) ? 0 : strlen(key),
931 &value, 931 &value,
932 NULL); 932 NULL);
933 return value; 933 return value;
934} 934}
935 935
@@ -1811,9 +1811,9 @@ build_header_response (struct MHD_Connection *connection)
1811 simply only force adding a content-length header if this 1811 simply only force adding a content-length header if this
1812 is not a 'connect' or if the response is not empty 1812 is not a 'connect' or if the response is not empty
1813 (which is kind of more sane, because if some crazy 1813 (which is kind of more sane, because if some crazy
1814 application did return content with a 2xx status code, 1814 application did return content with a 2xx status code,
1815 then having a content-length might again be a good idea). 1815 then having a content-length might again be a good idea).
1816 1816
1817 Note that the change from 'SHOULD NOT' to 'MUST NOT' is 1817 Note that the change from 'SHOULD NOT' to 'MUST NOT' is
1818 a recent development of the HTTP 1.1 specification. 1818 a recent development of the HTTP 1.1 specification.
1819 */ 1819 */