]> granicus.if.org Git - curl/commitdiff
curl_schannel.c: added explicit cast of structure pointers
authorMarc Hoersken <info@marc-hoersken.de>
Fri, 18 Apr 2014 20:38:42 +0000 (22:38 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Fri, 18 Apr 2014 20:38:42 +0000 (22:38 +0200)
lib/vtls/curl_schannel.c

index 82e088c7b300f12e0fd067a7bdc7e5de3ab90d48..575b693542b030da7ac0b34b14fa313a8876dc91 100644 (file)
@@ -193,7 +193,8 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
     }
 
     /* allocate memory for the re-usable credential handle */
-    connssl->cred = malloc(sizeof(struct curl_schannel_cred));
+    connssl->cred = (struct curl_schannel_cred *)
+                     malloc(sizeof(struct curl_schannel_cred));
     if(!connssl->cred) {
       failf(data, "schannel: unable to allocate memory");
       return CURLE_OUT_OF_MEMORY;
@@ -236,7 +237,8 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
                        ISC_REQ_STREAM;
 
   /* allocate memory for the security context handle */
-  connssl->ctxt = malloc(sizeof(struct curl_schannel_ctxt));
+  connssl->ctxt = (struct curl_schannel_ctxt *)
+                   malloc(sizeof(struct curl_schannel_ctxt));
   if(!connssl->ctxt) {
     failf(data, "schannel: unable to allocate memory");
     return CURLE_OUT_OF_MEMORY;