summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>2014-07-13 00:10:47 +0000
committerderaadt <>2014-07-13 00:10:47 +0000
commitf71c90f56cd6034e8039aaf214838e8ead46548b (patch)
tree95327b9886fd2da62f1f0c5c6b66648d83a0d918
parent03d498b01bd8631f5c3a851395b682ad261107ca (diff)
downloadopenbsd-f71c90f56cd6034e8039aaf214838e8ead46548b.tar.gz
openbsd-f71c90f56cd6034e8039aaf214838e8ead46548b.tar.bz2
openbsd-f71c90f56cd6034e8039aaf214838e8ead46548b.zip
remove silly cast
-rw-r--r--src/lib/libcrypto/ui/ui_openssl.c4
-rw-r--r--src/lib/libssl/src/crypto/ui/ui_openssl.c4
2 files changed, 4 insertions, 4 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))
diff --git a/src/lib/libssl/src/crypto/ui/ui_openssl.c b/src/lib/libssl/src/crypto/ui/ui_openssl.c
index f7f01bb4f1..a46534e3e5 100644
--- a/src/lib/libssl/src/crypto/ui/ui_openssl.c
+++ b/src/lib/libssl/src/crypto/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))