projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resolver interface with named and friends defined in resolve.h
[unix-history]
/
usr
/
src
/
lib
/
libc
/
net
/
res_query.c
diff --git
a/usr/src/lib/libc/net/res_query.c
b/usr/src/lib/libc/net/res_query.c
index
be77d30
..
ef1e24b
100644
(file)
--- a/
usr/src/lib/libc/net/res_query.c
+++ b/
usr/src/lib/libc/net/res_query.c
@@
-6,7
+6,7
@@
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)res_query.c 5.1
0
(Berkeley) %G%";
+static char sccsid[] = "@(#)res_query.c 5.1
1
(Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@
-120,7
+120,7
@@
res_search(name, class, type, answer, anslen)
{
register char *cp, **domain;
int n, ret, got_nodata = 0;
{
register char *cp, **domain;
int n, ret, got_nodata = 0;
-
static char *
hostalias();
+
char *__
hostalias();
if ((_res.options & RES_INIT) == 0 && res_init() == -1)
return (-1);
if ((_res.options & RES_INIT) == 0 && res_init() == -1)
return (-1);
@@
-130,7
+130,7
@@
res_search(name, class, type, answer, anslen)
for (cp = name, n = 0; *cp; cp++)
if (*cp == '.')
n++;
for (cp = name, n = 0; *cp; cp++)
if (*cp == '.')
n++;
- if (n == 0 && (cp = hostalias(name)))
+ if (n == 0 && (cp =
__
hostalias(name)))
return (res_query(cp, class, type, answer, anslen));
/*
return (res_query(cp, class, type, answer, anslen));
/*
@@
-220,9
+220,9
@@
res_querydomain(name, domain, class, type, answer, anslen)
return (res_query(longname, class, type, answer, anslen));
}
return (res_query(longname, class, type, answer, anslen));
}
-
static
char *
-hostalias(name)
- register char *name;
+char *
+
__
hostalias(name)
+ register c
onst c
har *name;
{
register char *C1, *C2;
FILE *fp;
{
register char *C1, *C2;
FILE *fp;