diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-17 22:19:57 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-17 22:19:57 +0000 |
commit | d80f5cd9d684c18a33e9b5abd9077e131cbafef2 (patch) | |
tree | 827290dc28e7673cae6aead282f9248863e4b319 /lib/libcrypto/bio/b_sock.c | |
parent | 8d61a10ba2840584d52152e31a6b681bf2085875 (diff) |
delete if 0 code
Diffstat (limited to 'lib/libcrypto/bio/b_sock.c')
-rw-r--r-- | lib/libcrypto/bio/b_sock.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/libcrypto/bio/b_sock.c b/lib/libcrypto/bio/b_sock.c index 0972feeb584..43b27e04060 100644 --- a/lib/libcrypto/bio/b_sock.c +++ b/lib/libcrypto/bio/b_sock.c @@ -96,23 +96,7 @@ static int wsa_init_done = 0; #define WSAAPI #endif -#if 0 -static unsigned long BIO_ghbn_hits = 0L; -static unsigned long BIO_ghbn_miss = 0L; - -#define GHBN_NUM 4 -static struct ghbn_cache_st { - char name[129]; - struct hostent *ent; - unsigned long order; -} ghbn_cache[GHBN_NUM]; -#endif - static int get_ip(const char *str, unsigned char *ip); -#if 0 -static void ghbn_free(struct hostent *a); -static struct hostent *ghbn_dup(struct hostent *a); -#endif int BIO_get_host_ip(const char *str, unsigned char *ip) @@ -200,10 +184,6 @@ BIO_get_port(const char *str, unsigned short *port_ptr) *port_ptr = 21; else if (strcmp(str, "gopher") == 0) *port_ptr = 70; -#if 0 - else if (strcmp(str, "wais") == 0) - *port_ptr = 21; -#endif else { SYSerr(SYS_F_GETSERVBYNAME, errno); ERR_add_error_data(3, "service='", str, "'"); @@ -220,10 +200,6 @@ BIO_sock_error(int sock) int j, i; int size; -#if defined(OPENSSL_SYS_BEOS_R5) - return 0; -#endif - size = sizeof(int); /* Note: under Windows the third parameter is of type (char *) * whereas under other systems it is (void *) if you don't have @@ -260,13 +236,9 @@ BIO_socket_ioctl(int fd, long type, void *arg) { int i; -#ifdef __DJGPP__ - i = ioctl(fd, type, (char *)arg); -#else # define ARG arg i = ioctl(fd, type, ARG); -#endif /* __DJGPP__ */ if (i < 0) SYSerr(SYS_F_IOCTLSOCKET, errno); return (i); |