summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/ui/ui_openssl.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-07-13 00:10:47 +0000
committerderaadt <deraadt@openbsd.org>2014-07-13 00:10:47 +0000
commit38bc216985d4d4d188db42ca08b0b9d95125869f (patch)
tree063efb0a351c57db80786a4b02947bb18556a280 /lib/libssl/src/crypto/ui/ui_openssl.c
parentAnother large dose of KNF. (diff)
downloadwireguard-openbsd-38bc216985d4d4d188db42ca08b0b9d95125869f.tar.xz
wireguard-openbsd-38bc216985d4d4d188db42ca08b0b9d95125869f.zip
remove silly cast
Diffstat (limited to 'lib/libssl/src/crypto/ui/ui_openssl.c')
-rw-r--r--lib/libssl/src/crypto/ui/ui_openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/ui/ui_openssl.c b/lib/libssl/src/crypto/ui/ui_openssl.c
index f7f01bb4f13..a46534e3e56 100644
--- a/lib/libssl/src/crypto/ui/ui_openssl.c
+++ b/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))