summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-04-26 14:41:15 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-04-26 14:41:15 +0000
commitd88f24b3d15b8bbd3b9e50454601ee8ae428b4d6 (patch)
tree037838e17430099c61081d94ddcf61c149dc7ccb /lib
parent1748f7a47e9ba1bf8a641bd7343a2a98cd330ecf (diff)
remove #if 0'ed portion which we will never revisit (no behavior change).
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/getaddrinfo.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index d8fccc57db4..c0106640891 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getaddrinfo.c,v 1.19 2000/04/26 12:31:44 itojun Exp $ */
+/* $OpenBSD: getaddrinfo.c,v 1.20 2000/04/26 14:41:14 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -736,18 +736,6 @@ explore_numeric_scope(pai, hostname, servname, res)
if (cp == NULL)
return explore_numeric(pai, hostname, servname, res);
-#if 0
- /*
- * Handle special case of <scope id><delimiter><scoped_address>
- */
- hostname2 = strdup(hostname);
- if (hostname2 == NULL)
- return EAI_MEMORY;
- /* terminate at the delimiter */
- hostname2[cp - hostname] = '\0';
- scope = hostname2;
- addr = cp + 1;
-#else
/*
* Handle special case of <scoped_address><delimiter><scope id>
*/
@@ -758,7 +746,6 @@ explore_numeric_scope(pai, hostname, servname, res)
hostname2[cp - hostname] = '\0';
addr = hostname2;
scope = cp + 1;
-#endif
error = explore_numeric(pai, addr, servname, res);
if (error == 0) {