diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2014-12-03 21:55:52 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2014-12-03 21:55:52 +0000 |
commit | d242309d9335cb28d4758ba47542de1f95ee5bad (patch) | |
tree | 8e647c8d4154eeab5b83c068c4307537ecb291bb /lib/libcrypto/bio/b_sock.c | |
parent | c72bee775e620373c68ad19f1afdb56ed0e7ab49 (diff) |
We're not supporting 16-bit Windows, remove cast.
ok jsing@ deraadt@
Diffstat (limited to 'lib/libcrypto/bio/b_sock.c')
-rw-r--r-- | lib/libcrypto/bio/b_sock.c | 5 |
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; |