summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv/res_gethost.c
diff options
context:
space:
mode:
authorScott Rotondo <Scott.Rotondo@Sun.COM>2009-05-21 22:03:24 -0700
committerScott Rotondo <Scott.Rotondo@Sun.COM>2009-05-21 22:03:24 -0700
commitd67944fbe3fa0b31893a7116a09b0718eecf6078 (patch)
tree89b9d2ec857c47e00acc2668cbdafa2edce45b14 /usr/src/lib/libresolv/res_gethost.c
parent259105bc352a464b4cdf3f424b5575e5e5e3f247 (diff)
downloadillumos-joyent-d67944fbe3fa0b31893a7116a09b0718eecf6078.tar.gz
6795209 Enable compilation of ON-consolidation with GCC 4.2
6392640 rpcgen -h -T output does not compile with gcc 4.x --HG-- rename : usr/src/stand/lib/fs/nfs/pathname.h => usr/src/stand/lib/fs/nfs/st_pathname.h
Diffstat (limited to 'usr/src/lib/libresolv/res_gethost.c')
-rw-r--r--usr/src/lib/libresolv/res_gethost.c10
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 f05fddd988..bc25771d6d 100644
--- a/usr/src/lib/libresolv/res_gethost.c
+++ b/usr/src/lib/libresolv/res_gethost.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -16,8 +16,6 @@
*
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -224,6 +222,8 @@ getanswer(answer, anslen, iquery)
}
}
+static struct hostent *_gethtbyname();
+
struct hostent *
res_gethostbyname(name)
char *name;
@@ -232,7 +232,6 @@ res_gethostbyname(name)
register char *cp;
int n;
struct hostent *hp, *gethostdomain();
- static struct hostent *_gethtbyname();
/*
* disallow names consisting only of digits/dots, unless
@@ -263,6 +262,8 @@ res_gethostbyname(name)
return (getanswer(&buf, n, 0));
}
+static struct hostent *_gethtbyaddr();
+
static struct hostent *
_getrhbyaddr(addr, len, type)
char *addr;
@@ -272,7 +273,6 @@ _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);