mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
977ad81fa2
- Makefile cleanup - Bump portrevision PR: ports/120957 Submitted by: Virgil Champlin <champlin@stupidog.org>
23 lines
694 B
C
23 lines
694 B
C
--- internet.c.orig Sat Sep 30 10:42:51 2000
|
|
+++ internet.c Thu Feb 21 09:18:31 2008
|
|
@@ -77,17 +77,8 @@
|
|
|
|
/* Look up the Internet name or IP number. */
|
|
|
|
- if (! isdigit(hostname[0])) {
|
|
- errno = 0;
|
|
- host = gethostbyname(hostname);
|
|
- } else {
|
|
- if ((ipaddr = inet_addr(hostname)) == (unsigned long)-1)
|
|
- fatal(0,"invalid IP number %s",hostname);
|
|
- network_to_address(address,ipaddr);
|
|
- errno = 0;
|
|
- host = gethostbyaddr((void *)address,sizeof(struct in_addr),
|
|
- AF_INET);
|
|
- }
|
|
+ errno = 0;
|
|
+ host = gethostbyname(hostname);
|
|
|
|
/* Now clear the timer and check the result. */
|
|
|