From 65a9fa59dcb442a23a8e01cdd1ee86d03f0b6957 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 2 Jun 2011 19:42:24 +0200 Subject: Remove unnecessary typecast --- lib/http_negotiate_sspi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/http_negotiate_sspi.c') 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; -- cgit v1.2.3