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
commit800fbde652d67326eeb163d56d8f72ebb239b3c4 (patch)
treec0956c22011ba4358ae4ab650adf0e744f93f40c /src/lib/libssl/pqueue.c
parent99e1482c930054f5a075761b96ee19aa8e1a4596 (diff)
downloadopenbsd-800fbde652d67326eeb163d56d8f72ebb239b3c4.tar.gz
openbsd-800fbde652d67326eeb163d56d8f72ebb239b3c4.tar.bz2
openbsd-800fbde652d67326eeb163d56d8f72ebb239b3c4.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