summaryrefslogtreecommitdiff
path: root/src/lib/libssl/pqueue.c
diff options
context:
space:
mode:
authorderaadt <>2014-06-07 14:41:57 +0000
committerderaadt <>2014-06-07 14:41:57 +0000
commit6e812251158ecbc0733dba21489ebce1248ebb33 (patch)
treec0956c22011ba4358ae4ab650adf0e744f93f40c /src/lib/libssl/pqueue.c
parent369f4c90b9a7f7864572479745455d29b0777219 (diff)
downloadopenbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.gz
openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.tar.bz2
openbsd-6e812251158ecbc0733dba21489ebce1248ebb33.zip
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'src/lib/libssl/pqueue.c')
-rw-r--r--src/lib/libssl/pqueue.c4
1 files changed, 2 insertions, 2 deletions
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 {
70pitem * 70pitem *
71pitem_new(unsigned char *prio64be, void *data) 71pitem_new(unsigned char *prio64be, void *data)
72{ 72{
73 pitem *item = (pitem *)malloc(sizeof(pitem)); 73 pitem *item = malloc(sizeof(pitem));
74 74
75 if (item == NULL) 75 if (item == NULL)
76 return NULL; 76 return NULL;
@@ -92,7 +92,7 @@ pitem_free(pitem *item)
92pqueue_s * 92pqueue_s *
93pqueue_new(void) 93pqueue_new(void)
94{ 94{
95 return (pqueue_s *)calloc(1, sizeof(pqueue_s)); 95 return calloc(1, sizeof(pqueue_s));
96} 96}
97 97
98void 98void