summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_lib.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/libcrypto/ui/ui_lib.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/libcrypto/ui/ui_lib.c')
-rw-r--r--src/lib/libcrypto/ui/ui_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c
index ff548f4bb8..e23f19a838 100644
--- a/src/lib/libcrypto/ui/ui_lib.c
+++ b/src/lib/libcrypto/ui/ui_lib.c
@@ -80,7 +80,7 @@ UI_new_method(const UI_METHOD *method)
80{ 80{
81 UI *ret; 81 UI *ret;
82 82
83 ret = (UI *) malloc(sizeof(UI)); 83 ret = malloc(sizeof(UI));
84 if (ret == NULL) { 84 if (ret == NULL) {
85 UIerr(UI_F_UI_NEW_METHOD, ERR_R_MALLOC_FAILURE); 85 UIerr(UI_F_UI_NEW_METHOD, ERR_R_MALLOC_FAILURE);
86 return NULL; 86 return NULL;
@@ -149,7 +149,7 @@ general_allocate_prompt(UI *ui, const char *prompt, int prompt_freeable,
149 } else if ((type == UIT_PROMPT || type == UIT_VERIFY || 149 } else if ((type == UIT_PROMPT || type == UIT_VERIFY ||
150 type == UIT_BOOLEAN) && result_buf == NULL) { 150 type == UIT_BOOLEAN) && result_buf == NULL) {
151 UIerr(UI_F_GENERAL_ALLOCATE_PROMPT, UI_R_NO_RESULT_BUFFER); 151 UIerr(UI_F_GENERAL_ALLOCATE_PROMPT, UI_R_NO_RESULT_BUFFER);
152 } else if ((ret = (UI_STRING *) malloc(sizeof(UI_STRING)))) { 152 } else if ((ret = malloc(sizeof(UI_STRING)))) {
153 ret->out_string = prompt; 153 ret->out_string = prompt;
154 ret->flags = prompt_freeable ? OUT_STRING_FREEABLE : 0; 154 ret->flags = prompt_freeable ? OUT_STRING_FREEABLE : 0;
155 ret->input_flags = input_flags; 155 ret->input_flags = input_flags;