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/libcrypto/engine/eng_lib.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/libcrypto/engine/eng_lib.c')
-rw-r--r-- | src/lib/libcrypto/engine/eng_lib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/engine/eng_lib.c b/src/lib/libcrypto/engine/eng_lib.c index 5ced58c86e..ce8d7b3018 100644 --- a/src/lib/libcrypto/engine/eng_lib.c +++ b/src/lib/libcrypto/engine/eng_lib.c | |||
@@ -65,7 +65,7 @@ ENGINE *ENGINE_new(void) | |||
65 | { | 65 | { |
66 | ENGINE *ret; | 66 | ENGINE *ret; |
67 | 67 | ||
68 | ret = (ENGINE *)malloc(sizeof(ENGINE)); | 68 | ret = malloc(sizeof(ENGINE)); |
69 | if(ret == NULL) | 69 | if(ret == NULL) |
70 | { | 70 | { |
71 | ENGINEerr(ENGINE_F_ENGINE_NEW, ERR_R_MALLOC_FAILURE); | 71 | ENGINEerr(ENGINE_F_ENGINE_NEW, ERR_R_MALLOC_FAILURE); |
@@ -152,8 +152,7 @@ static int int_cleanup_check(int create) | |||
152 | } | 152 | } |
153 | static ENGINE_CLEANUP_ITEM *int_cleanup_item(ENGINE_CLEANUP_CB *cb) | 153 | static ENGINE_CLEANUP_ITEM *int_cleanup_item(ENGINE_CLEANUP_CB *cb) |
154 | { | 154 | { |
155 | ENGINE_CLEANUP_ITEM *item = malloc(sizeof( | 155 | ENGINE_CLEANUP_ITEM *item = malloc(sizeof(ENGINE_CLEANUP_ITEM)); |
156 | ENGINE_CLEANUP_ITEM)); | ||
157 | if(!item) return NULL; | 156 | if(!item) return NULL; |
158 | item->cb = cb; | 157 | item->cb = cb; |
159 | return item; | 158 | return item; |