diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2014-04-18 22:38:42 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2014-04-18 22:38:42 +0200 |
commit | 6f72c2fe312aa4569bffc2bf7016057c3df40342 (patch) | |
tree | 98ee7630120bbdcc7f50ce6e012aa63933ef397e | |
parent | a703914e60becbc204350df178d4323af8436637 (diff) |
curl_schannel.c: added explicit cast of structure pointers
-rw-r--r-- | lib/vtls/curl_schannel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/vtls/curl_schannel.c b/lib/vtls/curl_schannel.c index 82e088c7b..575b69354 100644 --- a/lib/vtls/curl_schannel.c +++ b/lib/vtls/curl_schannel.c @@ -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; |