summaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-06-30 11:09:55 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-30 23:23:34 +0200
commit63c76681827b5ae9017f6c981003cd75e5f127de (patch)
treebb6bd6e510568427ea63aab4f498e84c442eabf7 /lib/http2.c
parent5372ee37d394b27f86ada8d9c50fc9b094c27675 (diff)
downloadcurl-63c76681827b5ae9017f6c981003cd75e5f127de.tar.gz
version: turn version number functions into returning void
... as we never use the return codes from them. Reviewed-by: Daniel Gustafsson Closes #7319
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 3b7ef2bb4..b9b129e4e 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -352,13 +352,12 @@ static const struct Curl_handler Curl_handler_http2_ssl = {
};
/*
- * Store nghttp2 version info in this buffer, Prefix with a space. Return
- * total length written.
+ * Store nghttp2 version info in this buffer.
*/
-int Curl_http2_ver(char *p, size_t len)
+void Curl_http2_ver(char *p, size_t len)
{
nghttp2_info *h2 = nghttp2_version(0);
- return msnprintf(p, len, "nghttp2/%s", h2->version_str);
+ (void)msnprintf(p, len, "nghttp2/%s", h2->version_str);
}
/*