diff options
author | 2014-04-19 13:13:01 +0000 | |
---|---|---|
committer | 2014-04-19 13:13:01 +0000 | |
commit | e38d8a9085111d57c7ab9fbabd3426a9a28e2d5a (patch) | |
tree | 203ba2233b1b6ce7a616a3e3ba29d8686ecb75d2 /lib/libssl/src | |
parent | More KNF. (diff) | |
download | wireguard-openbsd-e38d8a9085111d57c7ab9fbabd3426a9a28e2d5a.tar.xz wireguard-openbsd-e38d8a9085111d57c7ab9fbabd3426a9a28e2d5a.zip |
Remove hacky workaround for Cray T3E.
ok guenther
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/apps/s_socket.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/libssl/src/apps/s_socket.c b/lib/libssl/src/apps/s_socket.c index b77cb9008bf..baf6078a2b5 100644 --- a/lib/libssl/src/apps/s_socket.c +++ b/lib/libssl/src/apps/s_socket.c @@ -201,12 +201,7 @@ init_server_long(int *sock, int port, char *ip, int type) if (ip == NULL) server.sin_addr.s_addr = INADDR_ANY; else -/* Added for T3E, address-of fails on bit field (beckman@acl.lanl.gov) */ -#ifndef BIT_FIELD_LIMITS memcpy(&server.sin_addr.s_addr, ip, 4); -#else - memcpy(&server.sin_addr, ip, 4); -#endif if (type == SOCK_STREAM) s = socket(AF_INET, SOCK_STREAM, SOCKET_PROTOCOL); @@ -289,14 +284,8 @@ redoit: if (host == NULL) goto end; -#ifndef BIT_FIELD_LIMITS - /* I should use WSAAsyncGetHostByName() under windows */ h1 = gethostbyaddr((char *) &from.sin_addr.s_addr, sizeof(from.sin_addr.s_addr), AF_INET); -#else - h1 = gethostbyaddr((char *) &from.sin_addr, - sizeof(struct in_addr), AF_INET); -#endif if (h1 == NULL) { BIO_printf(bio_err, "bad gethostbyaddr\n"); *host = NULL; |