summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-07 10:52:48 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-08 13:53:02 +0200
commit17fcdf6a310d4c80762455ee9d5e4f52bd55c809 (patch)
tree747916b49eb0913ab3405ecb3b4484ad104e77d9 /docs
parentad425d3e3e2e9b5325332f4b883cdcb23e3f071e (diff)
downloadcurl-17fcdf6a310d4c80762455ee9d5e4f52bd55c809.tar.gz
lib: fix -Wassign-enum warnings
configure --enable-debug now enables -Wassign-enum with clang, identifying several enum "abuses" also fixed. Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/commit/879007f8118771f4896334731aaca5850a154675#commitcomment-42087553 Closes #5929
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/sslbackend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/sslbackend.c b/docs/examples/sslbackend.c
index 14c230390..12e515005 100644
--- a/docs/examples/sslbackend.c
+++ b/docs/examples/sslbackend.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -47,7 +47,7 @@ int main(int argc, char **argv)
const curl_ssl_backend **list;
int i;
- result = curl_global_sslset(-1, NULL, &list);
+ result = curl_global_sslset((curl_sslbackend)-1, NULL, &list);
assert(result == CURLSSLSET_UNKNOWN_BACKEND);
for(i = 0; list[i]; i++)
@@ -62,7 +62,7 @@ int main(int argc, char **argv)
result = curl_global_sslset((curl_sslbackend)id, NULL, NULL);
}
else
- result = curl_global_sslset(-1, name, NULL);
+ result = curl_global_sslset((curl_sslbackend)-1, name, NULL);
if(result == CURLSSLSET_UNKNOWN_BACKEND) {
fprintf(stderr, "Unknown SSL backend id: %s\n", name);