From d67944fbe3fa0b31893a7116a09b0718eecf6078 Mon Sep 17 00:00:00 2001 From: Scott Rotondo Date: Thu, 21 May 2009 22:03:24 -0700 Subject: 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 --- usr/src/lib/libresolv/res_gethost.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr/src/lib/libresolv/res_gethost.c') 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 #include #include @@ -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); -- cgit v1.2.3