summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/gethostnamadr.c
diff options
context:
space:
mode:
authormillert <>2002-02-16 21:27:50 +0000
committermillert <>2002-02-16 21:27:50 +0000
commit052e020be6be85be6238c44b8386a61f8db7b6a4 (patch)
tree4cf8f905bd37027527533678516a258fa89e2696 /src/lib/libc/net/gethostnamadr.c
parentee0af55ed65515812050f3b9a8d431c941b73eb8 (diff)
downloadopenbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.gz
openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.bz2
openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.zip
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'src/lib/libc/net/gethostnamadr.c')
-rw-r--r--src/lib/libc/net/gethostnamadr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c
index d7d6c621cf..d4e3c5e6f0 100644
--- a/src/lib/libc/net/gethostnamadr.c
+++ b/src/lib/libc/net/gethostnamadr.c
@@ -52,7 +52,7 @@
52 */ 52 */
53 53
54#if defined(LIBC_SCCS) && !defined(lint) 54#if defined(LIBC_SCCS) && !defined(lint)
55static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.43 2001/06/27 00:58:55 lebel Exp $"; 55static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.44 2002/02/16 21:27:23 millert Exp $";
56#endif /* LIBC_SCCS and not lint */ 56#endif /* LIBC_SCCS and not lint */
57 57
58#include <sys/param.h> 58#include <sys/param.h>
@@ -98,14 +98,14 @@ static union {
98static FILE *hostf = NULL; 98static FILE *hostf = NULL;
99static int stayopen = 0; 99static int stayopen = 0;
100 100
101static void map_v4v6_address __P((const char *src, char *dst)); 101static void map_v4v6_address(const char *src, char *dst);
102static void map_v4v6_hostent __P((struct hostent *hp, char **bp, int *len)); 102static void map_v4v6_hostent(struct hostent *hp, char **bp, int *len);
103 103
104#ifdef RESOLVSORT 104#ifdef RESOLVSORT
105static void addrsort __P((char **, int)); 105static void addrsort(char **, int);
106#endif 106#endif
107 107
108int _hokchar __P((const char *)); 108int _hokchar(const char *);
109 109
110static const char AskedForGot[] = 110static const char AskedForGot[] =
111 "gethostby*.getanswer: asked for \"%s\", got \"%s\""; 111 "gethostby*.getanswer: asked for \"%s\", got \"%s\"";
@@ -175,7 +175,7 @@ getanswer(answer, anslen, qname, qtype)
175 int toobig = 0; 175 int toobig = 0;
176 char tbuf[MAXDNAME]; 176 char tbuf[MAXDNAME];
177 const char *tname; 177 const char *tname;
178 int (*name_ok) __P((const char *)); 178 int (*name_ok)(const char *);
179 179
180 tname = qname; 180 tname = qname;
181 host.h_name = NULL; 181 host.h_name = NULL;