]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
schannel: fix discarding qualifier from pointer type
authorYang Tse <yangsita@gmail.com>
Thu, 14 Jun 2012 10:05:48 +0000 (12:05 +0200)
committerYang Tse <yangsita@gmail.com>
Thu, 14 Jun 2012 10:05:48 +0000 (12:05 +0200)
lib/curl_schannel.c

index 60f9c4b08049b8ebb441015283052bb846c3feb5..19c28dfa6ab25fb4edaa06529f8d4506ab52c7ed 100644 (file)
@@ -157,8 +157,8 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
     memset(connssl->cred, 0, sizeof(struct curl_schannel_cred));
 
     /* http://msdn.microsoft.com/en-us/library/windows/desktop/aa374716.aspx */
-    sspi_status = s_pSecFn->AcquireCredentialsHandle(NULL,
-      UNISP_NAME, SECPKG_CRED_OUTBOUND, NULL, &schannel_cred, NULL, NULL,
+    sspi_status = s_pSecFn->AcquireCredentialsHandle(NULL, (void *)UNISP_NAME,
+      SECPKG_CRED_OUTBOUND, NULL, &schannel_cred, NULL, NULL,
       &connssl->cred->cred_handle, &connssl->cred->time_stamp);
 
     if(sspi_status != SEC_E_OK) {