summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritojun <>2000-04-26 14:41:14 +0000
committeritojun <>2000-04-26 14:41:14 +0000
commit8738c88e88662a775664d029d71e0085093dcd9f (patch)
tree8b471b29712689918cf956eb21bb4014825b50d8
parentdd94dd2de552d0706a8ebbbf09e7102fc3bf5790 (diff)
downloadopenbsd-8738c88e88662a775664d029d71e0085093dcd9f.tar.gz
openbsd-8738c88e88662a775664d029d71e0085093dcd9f.tar.bz2
openbsd-8738c88e88662a775664d029d71e0085093dcd9f.zip
remove #if 0'ed portion which we will never revisit (no behavior change).
-rw-r--r--src/lib/libc/net/getaddrinfo.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c
index d8fccc57db..c010664089 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.19 2000/04/26 12:31:44 itojun Exp $ */ 1/* $OpenBSD: getaddrinfo.c,v 1.20 2000/04/26 14:41:14 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.
@@ -736,18 +736,6 @@ explore_numeric_scope(pai, hostname, servname, res)
736 if (cp == NULL) 736 if (cp == NULL)
737 return explore_numeric(pai, hostname, servname, res); 737 return explore_numeric(pai, hostname, servname, res);
738 738
739#if 0
740 /*
741 * Handle special case of <scope id><delimiter><scoped_address>
742 */
743 hostname2 = strdup(hostname);
744 if (hostname2 == NULL)
745 return EAI_MEMORY;
746 /* terminate at the delimiter */
747 hostname2[cp - hostname] = '\0';
748 scope = hostname2;
749 addr = cp + 1;
750#else
751 /* 739 /*
752 * Handle special case of <scoped_address><delimiter><scope id> 740 * Handle special case of <scoped_address><delimiter><scope id>
753 */ 741 */
@@ -758,7 +746,6 @@ explore_numeric_scope(pai, hostname, servname, res)
758 hostname2[cp - hostname] = '\0'; 746 hostname2[cp - hostname] = '\0';
759 addr = hostname2; 747 addr = hostname2;
760 scope = cp + 1; 748 scope = cp + 1;
761#endif
762 749
763 error = explore_numeric(pai, addr, servname, res); 750 error = explore_numeric(pai, addr, servname, res);
764 if (error == 0) { 751 if (error == 0) {