diff options
author | 2014-07-08 11:05:41 +0000 | |
---|---|---|
committer | 2014-07-08 11:05:41 +0000 | |
commit | 5072b6f72b4483ca68641b89ed996a3b5d87d543 (patch) | |
tree | 5112c010dcb20c63ffbb0f719351ff39d1d4834e | |
parent | fatalx(errorstr) -> fatalx("%s", errorstr) (diff) | |
download | wireguard-openbsd-5072b6f72b4483ca68641b89ed996a3b5d87d543.tar.xz wireguard-openbsd-5072b6f72b4483ca68641b89ed996a3b5d87d543.zip |
We have EAI_FAMILY - remove the #ifdefs.
ok beck@
-rw-r--r-- | lib/libcrypto/bio/b_sock.c | 6 | ||||
-rw-r--r-- | lib/libssl/src/crypto/bio/b_sock.c | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/lib/libcrypto/bio/b_sock.c b/lib/libcrypto/bio/b_sock.c index 8fea0b7f8f7..ad261f065a7 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.46 2014/07/08 10:12:48 jsing Exp $ */ +/* $OpenBSD: b_sock.c,v 1.47 2014/07/08 11:05:41 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -247,7 +247,6 @@ BIO_get_accept_socket(char *host, int bind_mode) else p = h, h = NULL; -#ifdef EAI_FAMILY do { struct addrinfo *res, hint; @@ -280,7 +279,6 @@ BIO_get_accept_socket(char *host, int bind_mode) freeaddrinfo(res); goto again; } while (0); -#endif if (!BIO_get_port(p, &port)) goto err; @@ -407,7 +405,6 @@ BIO_accept(int sock, char **addr) if (addr == NULL) goto end; -#ifdef EAI_FAMILY do { char h[NI_MAXHOST], s[NI_MAXSERV]; size_t nl; @@ -441,7 +438,6 @@ BIO_accept(int sock, char **addr) snprintf(*addr, nl, "%s:%s", h, s); goto end; } while (0); -#endif if (sa.from.sa.sa_family != AF_INET) goto end; l = ntohl(sa.from.sa_in.sin_addr.s_addr); diff --git a/lib/libssl/src/crypto/bio/b_sock.c b/lib/libssl/src/crypto/bio/b_sock.c index 8fea0b7f8f7..ad261f065a7 100644 --- a/lib/libssl/src/crypto/bio/b_sock.c +++ b/lib/libssl/src/crypto/bio/b_sock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: b_sock.c,v 1.46 2014/07/08 10:12:48 jsing Exp $ */ +/* $OpenBSD: b_sock.c,v 1.47 2014/07/08 11:05:41 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -247,7 +247,6 @@ BIO_get_accept_socket(char *host, int bind_mode) else p = h, h = NULL; -#ifdef EAI_FAMILY do { struct addrinfo *res, hint; @@ -280,7 +279,6 @@ BIO_get_accept_socket(char *host, int bind_mode) freeaddrinfo(res); goto again; } while (0); -#endif if (!BIO_get_port(p, &port)) goto err; @@ -407,7 +405,6 @@ BIO_accept(int sock, char **addr) if (addr == NULL) goto end; -#ifdef EAI_FAMILY do { char h[NI_MAXHOST], s[NI_MAXSERV]; size_t nl; @@ -441,7 +438,6 @@ BIO_accept(int sock, char **addr) snprintf(*addr, nl, "%s:%s", h, s); goto end; } while (0); -#endif if (sa.from.sa.sa_family != AF_INET) goto end; l = ntohl(sa.from.sa_in.sin_addr.s_addr); |