diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-10-22 14:39:06 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-10-22 14:39:06 +0000 |
| commit | fce61be7f5a48db23e3ff93cb29d6606ddcce20e (patch) | |
| tree | c551465aa58fec28c7b09e0f547e4baed6d0c3bb /lib/libc | |
| parent | 696cbd5ff23ec9f1a71c2f534971d0135270ceaf (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/net/gethostbydns.c | 3 | ||||
| -rw-r--r-- | lib/libc/net/getnetbydns.c | 3 | ||||
| -rw-r--r-- | lib/libc/net/getnetbynis.c | 6 |
3 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 621f3c745b4b..7b1e2d6209c7 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -53,7 +53,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; -static char rcsid[] = "$Id: gethostbydns.c,v 1.5 1995/08/20 20:02:37 peter Exp $"; +static char rcsid[] = "$Id: gethostbydns.c,v 1.6 1995/08/21 09:15:32 bde Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -63,6 +63,7 @@ static char rcsid[] = "$Id: gethostbydns.c,v 1.5 1995/08/20 20:02:37 peter Exp $ #include <arpa/nameser.h> #include <stdio.h> +#include <unistd.h> #include <string.h> #include <netdb.h> #include <resolv.h> diff --git a/lib/libc/net/getnetbydns.c b/lib/libc/net/getnetbydns.c index f0a224fd5b0c..440ebf84ba22 100644 --- a/lib/libc/net/getnetbydns.c +++ b/lib/libc/net/getnetbydns.c @@ -53,7 +53,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; -static char rcsid[] = "$Id: getnetbydns.c,v 1.2 1994/09/25 17:45:38 pst Exp $"; +static char rcsid[] = "$Id: getnetbydns.c,v 1.3 1995/05/30 05:40:46 rgrimes Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -64,6 +64,7 @@ static char rcsid[] = "$Id: getnetbydns.c,v 1.2 1994/09/25 17:45:38 pst Exp $"; #include <netdb.h> #include <resolv.h> #include <stdio.h> +#include <unistd.h> #include <ctype.h> #include <errno.h> #include <string.h> diff --git a/lib/libc/net/getnetbynis.c b/lib/libc/net/getnetbynis.c index 21f17b9cda15..d87ca0f29c5d 100644 --- a/lib/libc/net/getnetbynis.c +++ b/lib/libc/net/getnetbynis.c @@ -24,8 +24,8 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)$Id: getnetbynis.c,v 1.2 1994/09/26 02:50:43 wollman Exp $"; -static char rcsid[] = "$Id: getnetbynis.c,v 1.2 1994/09/26 02:50:43 wollman Exp $"; +static char sccsid[] = "@(#)$Id: getnetbynis.c,v 1.3 1995/05/30 05:40:47 rgrimes Exp $"; +static char rcsid[] = "$Id: getnetbynis.c,v 1.3 1995/05/30 05:40:47 rgrimes Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -34,6 +34,7 @@ static char rcsid[] = "$Id: getnetbynis.c,v 1.2 1994/09/26 02:50:43 wollman Exp #include <arpa/inet.h> #include <netdb.h> #include <stdio.h> +#include <stdlib.h> #include <ctype.h> #include <errno.h> #include <string.h> @@ -117,7 +118,6 @@ _getnetbynisaddr(addr, type) { struct in_addr in; char *str, *cp; - struct netent *np; if (type != AF_INET) return (NULL); |
