summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bio
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2014-12-03 21:55:52 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2014-12-03 21:55:52 +0000
commitd242309d9335cb28d4758ba47542de1f95ee5bad (patch)
tree8e647c8d4154eeab5b83c068c4307537ecb291bb /lib/libcrypto/bio
parentc72bee775e620373c68ad19f1afdb56ed0e7ab49 (diff)
We're not supporting 16-bit Windows, remove cast.
ok jsing@ deraadt@
Diffstat (limited to 'lib/libcrypto/bio')
-rw-r--r--lib/libcrypto/bio/b_sock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcrypto/bio/b_sock.c b/lib/libcrypto/bio/b_sock.c
index 8f3c58fda25..92a62b2c4cf 100644
--- a/lib/libcrypto/bio/b_sock.c
+++ b/lib/libcrypto/bio/b_sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: b_sock.c,v 1.59 2014/11/26 05:37:26 bcook Exp $ */
+/* $OpenBSD: b_sock.c,v 1.60 2014/12/03 21:55:51 bcook Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -94,8 +94,7 @@ BIO_get_host_ip(const char *str, unsigned char *ip)
goto err;
}
- /* cast to short because of win16 winsock definition */
- if ((short)he->h_addrtype != AF_INET) {
+ if (he->h_addrtype != AF_INET) {
BIOerr(BIO_F_BIO_GET_HOST_IP,
BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET);
goto err;