[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 231/411: windows: fix comparison of mismatched types warning
From: |
gnunet |
Subject: |
[gnurl] 231/411: windows: fix comparison of mismatched types warning |
Date: |
Wed, 13 Jan 2021 01:20:46 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit d707a9fa6477d6d1ac06b0e630b0970fe549adad
Author: Viktor Szakats <commit@vsz.me>
AuthorDate: Mon Oct 12 10:18:53 2020 +0000
windows: fix comparison of mismatched types warning
clang 10, mingw-w64:
```
vtls/openssl.c:2917:33: warning: comparison of integers of different signs:
'DWORD' (aka 'unsigned long') and 'HRESULT' (aka 'long')
[-Wsign-compare]
if(GetLastError() != CRYPT_E_NOT_FOUND)
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
```
Approved-by: Daniel Stenberg
Closes #6062
---
lib/vtls/openssl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index ffc0d6666..28a1ae6da 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -2914,7 +2914,7 @@ static CURLcode ossl_connect_step1(struct connectdata
*conn, int sockindex)
/* "If GetLastError returns CRYPT_E_NOT_FOUND, the certificate is
good for all uses. If it returns zero, the certificate has no
valid uses." */
- if(GetLastError() != CRYPT_E_NOT_FOUND)
+ if((HRESULT)GetLastError() != CRYPT_E_NOT_FOUND)
continue;
}
else {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 205/411: include/README: convert to markdown, (continued)
- [gnurl] 205/411: include/README: convert to markdown, gnunet, 2021/01/12
- [gnurl] 258/411: os400: Sync libcurl API options, gnunet, 2021/01/12
- [gnurl] 346/411: KNOWN_BUGS: cmake build in Linux links libcurl to libdl, gnunet, 2021/01/12
- [gnurl] 312/411: HISTORY: the new domain, gnunet, 2021/01/12
- [gnurl] 279/411: runtests: show keywords when no tests ran, gnunet, 2021/01/12
- [gnurl] 188/411: pause: only trigger a reread if the unpause sticks, gnunet, 2021/01/12
- [gnurl] 251/411: Makefile.m32: add support for HTTP/3 via ngtcp2+nghttp3, gnunet, 2021/01/12
- [gnurl] 198/411: ECH: renamed from ESNI in docs and configure, gnunet, 2021/01/12
- [gnurl] 244/411: strerror: use 'const' as the string should never be modified, gnunet, 2021/01/12
- [gnurl] 223/411: scripts/release-notes.pl: don't "embed" $ in format string for printf(), gnunet, 2021/01/12
- [gnurl] 231/411: windows: fix comparison of mismatched types warning,
gnunet <=
- [gnurl] 348/411: KNOWN_BUGS: cmake: generated .pc file contains strange entries, gnunet, 2021/01/12
- [gnurl] 318/411: hsts: remove debug code leftovers, gnunet, 2021/01/12
- [gnurl] 331/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 374/411: runtests: make 'c-ares' a "feature" to depend on, gnunet, 2021/01/12
- [gnurl] 378/411: vquic/ngtcp2.h: define local_addr as sockaddr_storage, gnunet, 2021/01/12
- [gnurl] 200/411: HISTORY: add some 2020 events, gnunet, 2021/01/12
- [gnurl] 247/411: libcurl.pc: make it relocatable, gnunet, 2021/01/12
- [gnurl] 254/411: CURLOPT_TCP_NODELAY.3: fix comment in example code, gnunet, 2021/01/12
- [gnurl] 255/411: CURLOPT_URL.3: clarify SCP/SFTP URLs are for uploads as well, gnunet, 2021/01/12
- [gnurl] 216/411: checksrc: warn on space after exclamation mark, gnunet, 2021/01/12