From f71c90f56cd6034e8039aaf214838e8ead46548b Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sun, 13 Jul 2014 00:10:47 +0000 Subject: remove silly cast --- src/lib/libcrypto/ui/ui_openssl.c | 4 ++-- src/lib/libssl/src/crypto/ui/ui_openssl.c | 4 ++-- 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 @@ -/* $OpenBSD: ui_openssl.c,v 1.22 2014/07/11 08:44:49 jsing Exp $ */ +/* $OpenBSD: ui_openssl.c,v 1.23 2014/07/13 00:10:47 deraadt Exp $ */ /* Written by Richard Levitte (richard@levitte.org) and others * for the OpenSSL project 2001. */ @@ -267,7 +267,7 @@ read_string_inner(UI *ui, UI_STRING *uis, int echo, int strip_nl) goto error; if (ferror(tty_in)) goto error; - if ((p = (char *) strchr(result, '\n')) != NULL) { + if ((p = strchr(result, '\n')) != NULL) { if (strip_nl) *p = '\0'; } 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 @@ -/* $OpenBSD: ui_openssl.c,v 1.22 2014/07/11 08:44:49 jsing Exp $ */ +/* $OpenBSD: ui_openssl.c,v 1.23 2014/07/13 00:10:47 deraadt Exp $ */ /* Written by Richard Levitte (richard@levitte.org) and others * for the OpenSSL project 2001. */ @@ -267,7 +267,7 @@ read_string_inner(UI *ui, UI_STRING *uis, int echo, int strip_nl) goto error; if (ferror(tty_in)) goto error; - if ((p = (char *) strchr(result, '\n')) != NULL) { + if ((p = strchr(result, '\n')) != NULL) { if (strip_nl) *p = '\0'; } else if (!read_till_nl(tty_in)) -- cgit v1.2.3-55-g6feb