diff options
author | itojun <> | 2000-02-21 04:14:09 +0000 |
---|---|---|
committer | itojun <> | 2000-02-21 04:14:09 +0000 |
commit | 662c66429e022b4e3dcfe1b7060ce13da066bd8b (patch) | |
tree | ecf5e1dfe7ad4c3d524f3884dc354b99985c6be4 /src | |
parent | be3dce7b46358d47347a0fa9232513d2e3a2ff4a (diff) | |
download | openbsd-662c66429e022b4e3dcfe1b7060ce13da066bd8b.tar.gz openbsd-662c66429e022b4e3dcfe1b7060ce13da066bd8b.tar.bz2 openbsd-662c66429e022b4e3dcfe1b7060ce13da066bd8b.zip |
remove extra #ifdef (USE_GETIPNODEBY)
Diffstat (limited to 'src')
-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 | ||