diff options
author | 2014-06-07 14:41:56 +0000 | |
---|---|---|
committer | 2014-06-07 14:41:56 +0000 | |
commit | 4163340b499b485e883e0fa2e5cb8184fd8c0a18 (patch) | |
tree | 0c44f8a082e5dc6c4f9d0af733243d1a96651790 /lib/libssl/pqueue.c | |
parent | Remove another NULL check before a BIO_free(). (diff) | |
download | wireguard-openbsd-4163340b499b485e883e0fa2e5cb8184fd8c0a18.tar.xz wireguard-openbsd-4163340b499b485e883e0fa2e5cb8184fd8c0a18.zip |
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'lib/libssl/pqueue.c')
-rw-r--r-- | lib/libssl/pqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/pqueue.c b/lib/libssl/pqueue.c index af8530064fe..d1c258a1791 100644 --- a/lib/libssl/pqueue.c +++ b/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 |