summaryrefslogtreecommitdiff
path: root/lib/vtls/gskit.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-28 17:21:02 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-28 17:33:01 +0000
commit037cd0d99159cd39b8e1217ad9a9362e7ab0b746 (patch)
tree0dc5df221687ea09e93a0f8cef5be29ddade4a3a /lib/vtls/gskit.h
parent6d79722d7898122d7a91a931e03612cb2dab85b1 (diff)
downloadgnurl-037cd0d99159cd39b8e1217ad9a9362e7ab0b746.tar.gz
gnurl-037cd0d99159cd39b8e1217ad9a9362e7ab0b746.tar.bz2
gnurl-037cd0d99159cd39b8e1217ad9a9362e7ab0b746.zip
vtls: Fixed compilation warning and an ignored return code
curl_schannel.h:123: warning: right-hand operand of comma expression has no effect Some instances of the curlssl_close_all() function were declared with a void return type whilst others as int. The schannel version returned CURLE_NOT_BUILT_IN and others simply returned zero, but in all cases the return code was ignored by the calling function Curl_ssl_close_all(). For the time being and to keep the internal API consistent, changed all declarations to use a void return type. To reduce code we might want to consider removing the unimplemented versions and use a void #define like schannel does.
Diffstat (limited to 'lib/vtls/gskit.h')
-rw-r--r--lib/vtls/gskit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/gskit.h b/lib/vtls/gskit.h
index fc1c45ccb..baec82323 100644
--- a/lib/vtls/gskit.h
+++ b/lib/vtls/gskit.h
@@ -36,7 +36,7 @@ CURLcode Curl_gskit_connect(struct connectdata * conn, int sockindex);
CURLcode Curl_gskit_connect_nonblocking(struct connectdata * conn,
int sockindex, bool * done);
void Curl_gskit_close(struct connectdata *conn, int sockindex);
-int Curl_gskit_close_all(struct SessionHandle * data);
+void Curl_gskit_close_all(struct SessionHandle * data);
int Curl_gskit_shutdown(struct connectdata * conn, int sockindex);
size_t Curl_gskit_version(char * buffer, size_t size);