aboutsummaryrefslogtreecommitdiff
path: root/packages
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 /packages
parent861b647e7b1da564b831a5b07312a30feb7b6c58 (diff)
remove unnecessary typecasting of calloc()
Diffstat (limited to 'packages')
-rw-r--r--packages/OS400/os400sys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/OS400/os400sys.c b/packages/OS400/os400sys.c
index 608aab69a..4a63e0891 100644
--- a/packages/OS400/os400sys.c
+++ b/packages/OS400/os400sys.c
@@ -192,7 +192,7 @@ buffer_threaded(localkey_t key, long size)
/* Allocate buffer descriptors for the current thread. */
- if (!(bufs = (buffer_t *) calloc((size_t) LK_LAST, sizeof *bufs)))
+ if (!(bufs = calloc((size_t) LK_LAST, sizeof *bufs)))
return (char *) NULL;
if (pthread_setspecific(thdkey, (void *) bufs)) {
@@ -220,7 +220,7 @@ buffer_undef(localkey_t key, long size)
if (Curl_thread_buffer == buffer_undef) { /* If unchanged during lock. */
if (!pthread_key_create(&thdkey, thdbufdestroy))
Curl_thread_buffer = buffer_threaded;
- else if (!(locbufs = (buffer_t *) calloc((size_t) LK_LAST,
+ else if (!(locbufs = calloc((size_t) LK_LAST,
sizeof *locbufs))) {
pthread_mutex_unlock(&mutex);
return (char *) NULL;
@@ -777,7 +777,7 @@ Curl_ldap_search_s_a(void * ld, char * base, int scope, char * filter,
for (i = 0; attrs[i++];)
;
- if (!(eattrs = (char * *) calloc(i, sizeof *eattrs)))
+ if (!(eattrs = calloc(i, sizeof *eattrs)))
status = LDAP_NO_MEMORY;
else {
for (j = 0; attrs[j]; j++) {