aboutsummaryrefslogtreecommitdiff
path: root/lib/http_negotiate_sspi.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-06-02 19:42:24 +0200
committerYang Tse <yangsita@gmail.com>2011-06-02 19:42:24 +0200
commit65a9fa59dcb442a23a8e01cdd1ee86d03f0b6957 (patch)
treee0a2556202bc5eb245283807cfc89dd9ddd04217 /lib/http_negotiate_sspi.c
parent9eea43dce2442aa63065432738e3ce23046ba05a (diff)
Remove unnecessary typecast
Diffstat (limited to 'lib/http_negotiate_sspi.c')
-rw-r--r--lib/http_negotiate_sspi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c
index 0658c529a..809870168 100644
--- a/lib/http_negotiate_sspi.c
+++ b/lib/http_negotiate_sspi.c
@@ -143,7 +143,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
/* Allocate input and output buffers according to the max token size
as indicated by the security package */
neg_ctx->max_token_length = SecurityPackage->cbMaxToken;
- neg_ctx->output_token = (BYTE *)malloc(neg_ctx->max_token_length);
+ neg_ctx->output_token = malloc(neg_ctx->max_token_length);
s_pSecFn->FreeContextBuffer(SecurityPackage);
}
@@ -157,8 +157,8 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
/* first call in a new negotation, we have to acquire credentials,
and allocate memory for the context */
- neg_ctx->credentials = (CredHandle *)malloc(sizeof(CredHandle));
- neg_ctx->context = (CtxtHandle *)malloc(sizeof(CtxtHandle));
+ neg_ctx->credentials = malloc(sizeof(CredHandle));
+ neg_ctx->context = malloc(sizeof(CtxtHandle));
if(!neg_ctx->credentials || !neg_ctx->context)
return -1;