gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]