diff options
author | deraadt <> | 2014-06-07 14:41:57 +0000 |
---|---|---|
committer | deraadt <> | 2014-06-07 14:41:57 +0000 |
commit | 6e812251158ecbc0733dba21489ebce1248ebb33 (patch) | |
tree | c0956c22011ba4358ae4ab650adf0e744f93f40c /src/lib/libssl/pqueue.c | |
parent | 369f4c90b9a7f7864572479745455d29b0777219 (diff) | |
download | openbsd-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.c | 4 |
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 { | |||
70 | pitem * | 70 | pitem * |
71 | pitem_new(unsigned char *prio64be, void *data) | 71 | pitem_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) | |||
92 | pqueue_s * | 92 | pqueue_s * |
93 | pqueue_new(void) | 93 | pqueue_new(void) |
94 | { | 94 | { |
95 | return (pqueue_s *)calloc(1, sizeof(pqueue_s)); | 95 | return calloc(1, sizeof(pqueue_s)); |
96 | } | 96 | } |
97 | 97 | ||
98 | void | 98 | void |