gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 67/222: http: fix warning on conversion from int to bit


From: gnunet
Subject: [gnurl] 67/222: http: fix warning on conversion from int to bit
Date: Thu, 07 Nov 2019 00:09:23 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit fe514ad9aefa2cd47c0da97bd8b8b69d58c48683
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sat Sep 21 23:09:59 2019 +0200

    http: fix warning on conversion from int to bit
    
    Follow-up from 03ebe66d70
---
 lib/http.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/http.c b/lib/http.c
index de16f6e6b..9719b28ef 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -4054,7 +4054,7 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy 
*data,
       if(result)
         return result;
     }
-  #ifdef USE_SPNEGO
+#ifdef USE_SPNEGO
     else if(checkprefix("Persistent-Auth", k->p)) {
       struct negotiatedata *negdata = &conn->negotiate;
       struct auth *authp = &data->state.authhost;
@@ -4062,14 +4062,15 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy 
*data,
         char *persistentauth = Curl_copy_header_value(k->p);
         if(!persistentauth)
           return CURLE_OUT_OF_MEMORY;
-        negdata->noauthpersist = checkprefix("false", persistentauth);
+        negdata->noauthpersist = checkprefix("false", persistentauth)?
+          TRUE:FALSE;
         negdata->havenoauthpersist = TRUE;
         infof(data, "Negotiate: noauthpersist -> %d, header part: %s",
           negdata->noauthpersist, persistentauth);
         free(persistentauth);
       }
     }
-  #endif
+#endif
     else if((k->httpcode >= 300 && k->httpcode < 400) &&
             checkprefix("Location:", k->p) &&
             !data->req.location) {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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