diff options
author | jmcp <James.McPherson@Sun.COM> | 2009-04-30 20:04:06 -0700 |
---|---|---|
committer | jmcp <James.McPherson@Sun.COM> | 2009-04-30 20:04:06 -0700 |
commit | 71a535e3b24d87fb6be3793380f86bd09f2768ac (patch) | |
tree | e602b2114284c42cf64645658f2b18e50d34f5a6 /usr/src/lib/libresolv | |
parent | 9f51456788105f8fa3e4ebf290b4628eb757e65a (diff) | |
download | illumos-gate-71a535e3b24d87fb6be3793380f86bd09f2768ac.tar.gz |
backout 6795209/6392640: breaks sparc build
Diffstat (limited to 'usr/src/lib/libresolv')
-rw-r--r-- | usr/src/lib/libresolv/res_gethost.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/lib/libresolv/res_gethost.c b/usr/src/lib/libresolv/res_gethost.c index bc25771d6d..f05fddd988 100644 --- a/usr/src/lib/libresolv/res_gethost.c +++ b/usr/src/lib/libresolv/res_gethost.c @@ -1,5 +1,5 @@ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -16,6 +16,8 @@ * */ +#pragma ident "%Z%%M% %I% %E% SMI" + #include <sys/param.h> #include <sys/socket.h> #include <netinet/in.h> @@ -222,8 +224,6 @@ getanswer(answer, anslen, iquery) } } -static struct hostent *_gethtbyname(); - struct hostent * res_gethostbyname(name) char *name; @@ -232,6 +232,7 @@ res_gethostbyname(name) register char *cp; int n; struct hostent *hp, *gethostdomain(); + static struct hostent *_gethtbyname(); /* * disallow names consisting only of digits/dots, unless @@ -262,8 +263,6 @@ res_gethostbyname(name) return (getanswer(&buf, n, 0)); } -static struct hostent *_gethtbyaddr(); - static struct hostent * _getrhbyaddr(addr, len, type) char *addr; @@ -273,6 +272,7 @@ _getrhbyaddr(addr, len, type) querybuf buf; register struct hostent *hp; char qbuf[MAXDNAME]; + static struct hostent *_gethtbyaddr(); if (type != AF_INET) return ((struct hostent *) NULL); |