summaryrefslogtreecommitdiffstats
path: root/lib/libssl/pqueue.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-06-07 14:41:56 +0000
committerderaadt <deraadt@openbsd.org>2014-06-07 14:41:56 +0000
commit4163340b499b485e883e0fa2e5cb8184fd8c0a18 (patch)
tree0c44f8a082e5dc6c4f9d0af733243d1a96651790 /lib/libssl/pqueue.c
parentRemove another NULL check before a BIO_free(). (diff)
downloadwireguard-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.c4
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