]> granicus.if.org Git - curl/commitdiff
curl_ntlm_core.c: Fixed compilation warning from commit 1cb17b2a5d
authorSteve Holme <steve_holme@hotmail.com>
Fri, 2 Jan 2015 21:09:24 +0000 (21:09 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 2 Jan 2015 21:14:36 +0000 (21:14 +0000)
curl_ntlm_core.c:146: warning: passing 'DES_cblock' (aka 'unsigned char
                      [8]') to parameter of type 'char *' converts
                      between pointers to integer types with different
                      sign

lib/curl_ntlm_core.c

index c6765ecae85390d0d443b35dda5acb04e98cedda..2aaea4db826c5658528a1b6926205fc7a38ca81f 100644 (file)
@@ -143,7 +143,7 @@ static void setup_des_key(const unsigned char *key_56,
 {
   DES_cblock key;
 
-  extend_key_56_to_64(key_56, key);
+  extend_key_56_to_64(key_56, (char *) key);
   DES_set_odd_parity(&key);
   DES_set_key(&key, ks);
 }