diff options
Diffstat (limited to 'src/lib/libcrypto/ui/ui_lib.c')
| -rw-r--r-- | src/lib/libcrypto/ui/ui_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index c2fe62df33..a33484c72b 100644 --- a/src/lib/libcrypto/ui/ui_lib.c +++ b/src/lib/libcrypto/ui/ui_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ui_lib.c,v 1.25 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: ui_lib.c,v 1.26 2014/07/11 16:22:29 deraadt Exp $ */ |
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
| 3 | * project 2001. | 3 | * project 2001. |
| 4 | */ | 4 | */ |
| @@ -173,7 +173,7 @@ general_allocate_string(UI *ui, const char *prompt, int prompt_freeable, | |||
| 173 | s->_.string_data.result_maxsize = maxsize; | 173 | s->_.string_data.result_maxsize = maxsize; |
| 174 | s->_.string_data.test_buf = test_buf; | 174 | s->_.string_data.test_buf = test_buf; |
| 175 | ret = sk_UI_STRING_push(ui->strings, s); | 175 | ret = sk_UI_STRING_push(ui->strings, s); |
| 176 | /* sk_push() returns 0 on error. Let's addapt that */ | 176 | /* sk_push() returns 0 on error. Let's adapt that */ |
| 177 | if (ret <= 0) | 177 | if (ret <= 0) |
| 178 | ret--; | 178 | ret--; |
| 179 | } else | 179 | } else |
| @@ -215,7 +215,7 @@ general_allocate_boolean(UI *ui, const char *prompt, const char *action_desc, | |||
| 215 | s->_.boolean_data.cancel_chars = cancel_chars; | 215 | s->_.boolean_data.cancel_chars = cancel_chars; |
| 216 | ret = sk_UI_STRING_push(ui->strings, s); | 216 | ret = sk_UI_STRING_push(ui->strings, s); |
| 217 | /* | 217 | /* |
| 218 | * sk_push() returns 0 on error. Let's addapt | 218 | * sk_push() returns 0 on error. Let's adapt |
| 219 | * that | 219 | * that |
| 220 | */ | 220 | */ |
| 221 | if (ret <= 0) | 221 | if (ret <= 0) |
