diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/net/getaddrinfo.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c index cebcc45c7b..823b21b2b3 100644 --- a/src/lib/libc/net/getaddrinfo.c +++ b/src/lib/libc/net/getaddrinfo.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getaddrinfo.c,v 1.13 2000/02/17 17:09:40 itojun Exp $ */ | 1 | /* $OpenBSD: getaddrinfo.c,v 1.14 2000/02/21 04:14:09 itojun Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. | 4 | * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
| @@ -573,10 +573,6 @@ explore_fqdn(pai, hostname, servname, res) | |||
| 573 | return 0; | 573 | return 0; |
| 574 | 574 | ||
| 575 | free: | 575 | free: |
| 576 | #ifdef USE_GETIPNODEBY | ||
| 577 | if (hp) | ||
| 578 | freehostent(hp); | ||
| 579 | #endif | ||
| 580 | if (aplist) | 576 | if (aplist) |
| 581 | free(aplist); | 577 | free(aplist); |
| 582 | if (apbuf) | 578 | if (apbuf) |
| @@ -951,9 +947,6 @@ static int | |||
| 951 | addrconfig(pai) | 947 | addrconfig(pai) |
| 952 | const struct addrinfo *pai; | 948 | const struct addrinfo *pai; |
| 953 | { | 949 | { |
| 954 | #ifdef USE_GETIPNODEBY | ||
| 955 | return 1; | ||
| 956 | #else | ||
| 957 | int s; | 950 | int s; |
| 958 | 951 | ||
| 959 | /* XXX errno */ | 952 | /* XXX errno */ |
| @@ -962,7 +955,6 @@ addrconfig(pai) | |||
| 962 | return 0; | 955 | return 0; |
| 963 | close(s); | 956 | close(s); |
| 964 | return 1; | 957 | return 1; |
| 965 | #endif | ||
| 966 | } | 958 | } |
| 967 | #endif | 959 | #endif |
| 968 | 960 | ||
