aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-06 04:47:14 +0000
committerYang Tse <yangsita@gmail.com>2008-09-06 04:47:14 +0000
commita622fd90b4c563a4fced20c5b88cb57537e809b0 (patch)
treeb0b3c28505d41d062f7828c0d1e13e3aa9a351a8 /lib/url.c
parent861b647e7b1da564b831a5b07312a30feb7b6c58 (diff)
remove unnecessary typecasting of calloc()
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 7bd812628..8b4bdaeca 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -651,7 +651,7 @@ CURLcode Curl_open(struct SessionHandle **curl)
#endif
/* Very simple start-up: alloc the struct, init it with zeroes and return */
- data = (struct SessionHandle *)calloc(1, sizeof(struct SessionHandle));
+ data = calloc(1, sizeof(struct SessionHandle));
if(!data) {
/* this is a very serious error */
DEBUGF(fprintf(stderr, "Error: calloc of SessionHandle failed\n"));
@@ -2969,7 +2969,7 @@ static struct connectdata *allocate_conn(void)
{
struct connectdata *conn;
- conn = (struct connectdata *)calloc(1, sizeof(struct connectdata));
+ conn = calloc(1, sizeof(struct connectdata));
if(!conn)
return NULL;