diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-06-07 14:41:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-06-07 14:41:58 +0000 |
commit | 266f7f14bb884216f7d07623deb97d8d3487e964 (patch) | |
tree | 8b13bd4c0ad356be648d746cb75b920d0e35f921 /lib/libcrypto/ui | |
parent | 09eb0761c8d7243f1ecd9af78bb13ddab0d30b0e (diff) |
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'lib/libcrypto/ui')
-rw-r--r-- | lib/libcrypto/ui/ui_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ui/ui_lib.c b/lib/libcrypto/ui/ui_lib.c index ff548f4bb8d..e23f19a838b 100644 --- a/lib/libcrypto/ui/ui_lib.c +++ b/lib/libcrypto/ui/ui_lib.c @@ -80,7 +80,7 @@ UI_new_method(const UI_METHOD *method) { UI *ret; - ret = (UI *) malloc(sizeof(UI)); + ret = malloc(sizeof(UI)); if (ret == NULL) { UIerr(UI_F_UI_NEW_METHOD, ERR_R_MALLOC_FAILURE); return NULL; @@ -149,7 +149,7 @@ general_allocate_prompt(UI *ui, const char *prompt, int prompt_freeable, } else if ((type == UIT_PROMPT || type == UIT_VERIFY || type == UIT_BOOLEAN) && result_buf == NULL) { UIerr(UI_F_GENERAL_ALLOCATE_PROMPT, UI_R_NO_RESULT_BUFFER); - } else if ((ret = (UI_STRING *) malloc(sizeof(UI_STRING)))) { + } else if ((ret = malloc(sizeof(UI_STRING)))) { ret->out_string = prompt; ret->flags = prompt_freeable ? OUT_STRING_FREEABLE : 0; ret->input_flags = input_flags; |