summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_openssl.c
diff options
context:
space:
mode:
authorderaadt <>2014-07-13 00:10:47 +0000
committerderaadt <>2014-07-13 00:10:47 +0000
commit485fa44976b8e2fbec1f8891989a9480d953e0d5 (patch)
tree95327b9886fd2da62f1f0c5c6b66648d83a0d918 /src/lib/libcrypto/ui/ui_openssl.c
parent5d30a3f6e546c0c93e19d060d0eb074056fc41a7 (diff)
downloadopenbsd-485fa44976b8e2fbec1f8891989a9480d953e0d5.tar.gz
openbsd-485fa44976b8e2fbec1f8891989a9480d953e0d5.tar.bz2
openbsd-485fa44976b8e2fbec1f8891989a9480d953e0d5.zip
remove silly cast
Diffstat (limited to 'src/lib/libcrypto/ui/ui_openssl.c')
-rw-r--r--src/lib/libcrypto/ui/ui_openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c
index f7f01bb4f1..a46534e3e5 100644
--- a/src/lib/libcrypto/ui/ui_openssl.c
+++ b/src/lib/libcrypto/ui/ui_openssl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ui_openssl.c,v 1.22 2014/07/11 08:44:49 jsing Exp $ */ 1/* $OpenBSD: ui_openssl.c,v 1.23 2014/07/13 00:10:47 deraadt Exp $ */
2/* Written by Richard Levitte (richard@levitte.org) and others 2/* Written by Richard Levitte (richard@levitte.org) and others
3 * for the OpenSSL project 2001. 3 * for the OpenSSL project 2001.
4 */ 4 */
@@ -267,7 +267,7 @@ read_string_inner(UI *ui, UI_STRING *uis, int echo, int strip_nl)
267 goto error; 267 goto error;
268 if (ferror(tty_in)) 268 if (ferror(tty_in))
269 goto error; 269 goto error;
270 if ((p = (char *) strchr(result, '\n')) != NULL) { 270 if ((p = strchr(result, '\n')) != NULL) {
271 if (strip_nl) 271 if (strip_nl)
272 *p = '\0'; 272 *p = '\0';
273 } else if (!read_till_nl(tty_in)) 273 } else if (!read_till_nl(tty_in))