diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2014-11-26 05:37:27 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2014-11-26 05:37:27 +0000 |
commit | 007bf0a49fb2fdae50e4a134d793d9e90a2902ad (patch) | |
tree | 73845d78797ff9d28ff3591c4c504cd4a31ba5ff /lib/libcrypto/bio/b_sock.c | |
parent | ad0a252c4bb336462f90144782d97c3ac8f365c7 (diff) |
normalize set/getsockopt usage.
Remove the remaining random casts on optval. Fixups for this can be handled by
the portability layer all in once place.
Remove remaining fake socklen_t unions, though beck@ points out that this also
removes support for socklen_t changing its length at runtime. RIP.
ok tedu@ beck@ miod@ 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 34e5d9830e2..8f3c58fda25 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.58 2014/10/13 02:49:53 bcook Exp $ */ +/* $OpenBSD: b_sock.c,v 1.59 2014/11/26 05:37:26 bcook Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -318,8 +318,7 @@ again: if (bind_mode == BIO_BIND_REUSEADDR) { int i = 1; - ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&i, - sizeof(i)); + ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)); bind_mode = BIO_BIND_NORMAL; } if (bind(s, &server.sa, addrlen) == -1) { |