From a622fd90b4c563a4fced20c5b88cb57537e809b0 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 6 Sep 2008 04:47:14 +0000 Subject: remove unnecessary typecasting of calloc() --- packages/OS400/os400sys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/OS400') 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++) { -- cgit v1.2.3