diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-06 05:29:05 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-06 05:29:05 +0000 |
commit | 59e378f48fed849e8e41f0bc6a10bf7a1732ae8a (patch) | |
tree | 2443ceace655d5d830c7c4d7c95869c6a0f93c5c /lib/share.c | |
parent | a622fd90b4c563a4fced20c5b88cb57537e809b0 (diff) | |
download | curl-59e378f48fed849e8e41f0bc6a10bf7a1732ae8a.tar.gz |
remove unnecessary typecasting of malloc()
Diffstat (limited to 'lib/share.c')
-rw-r--r-- | lib/share.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/share.c b/lib/share.c index 3a5f072bd..6430611b3 100644 --- a/lib/share.c +++ b/lib/share.c @@ -36,8 +36,7 @@ CURLSH * curl_share_init(void) { - struct Curl_share *share = - (struct Curl_share *)malloc(sizeof(struct Curl_share)); + struct Curl_share *share = malloc(sizeof(struct Curl_share)); if(share) { memset (share, 0, sizeof(struct Curl_share)); share->specifier |= (1<<CURL_LOCK_DATA_SHARE); |