From 6e812251158ecbc0733dba21489ebce1248ebb33 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sat, 7 Jun 2014 14:41:57 +0000 Subject: malloc() result does not need a cast. ok miod --- src/lib/libssl/pqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl/pqueue.c') diff --git a/src/lib/libssl/pqueue.c b/src/lib/libssl/pqueue.c index af8530064f..d1c258a179 100644 --- a/src/lib/libssl/pqueue.c +++ b/src/lib/libssl/pqueue.c @@ -70,7 +70,7 @@ typedef struct _pqueue { pitem * pitem_new(unsigned char *prio64be, void *data) { - pitem *item = (pitem *)malloc(sizeof(pitem)); + pitem *item = malloc(sizeof(pitem)); if (item == NULL) return NULL; @@ -92,7 +92,7 @@ pitem_free(pitem *item) pqueue_s * pqueue_new(void) { - return (pqueue_s *)calloc(1, sizeof(pqueue_s)); + return calloc(1, sizeof(pqueue_s)); } void -- cgit v1.2.3-55-g6feb