diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1996-05-31 16:01:51 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1996-05-31 16:01:51 +0000 |
commit | 1fbdac93d98e19ba0c459e3a2c782dcf764ef05a (patch) | |
tree | 09d1229ceb91ce3fd14b2705728d76c9b2ed0f9f /usr.sbin/ypserv/yp_dnslookup.c | |
parent | 2ee75088b469e371f289008a1d526ea46ae3267d (diff) |
Small touch-ups -- no functional changes.
Fix some comments to reflect reality (in some cases I made changes
to code but not to the comments).
Change some instances of 'inline' to '__inline' to pacify
gcc -ansi -pedantic.
Use rcsid strings more consistently.
Make 'oldaddr' static in yp_access().
Use strcpy()/strcat() in yp_open_db_cache() instead of snprintf().
(Seems to be a little faster this way.)
Notes
Notes:
svn path=/head/; revision=16044
Diffstat (limited to 'usr.sbin/ypserv/yp_dnslookup.c')
-rw-r--r-- | usr.sbin/ypserv/yp_dnslookup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_dnslookup.c b/usr.sbin/ypserv/yp_dnslookup.c index a3d4b7a4f662..c578d6b4de64 100644 --- a/usr.sbin/ypserv/yp_dnslookup.c +++ b/usr.sbin/ypserv/yp_dnslookup.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: yp_dnslookup.c,v 1.4 1995/12/07 05:01:34 wpaul Exp $ + * $Id: yp_dnslookup.c,v 1.2 1996/05/01 02:37:46 wpaul Exp $ */ /* @@ -53,6 +53,10 @@ #include <arpa/inet.h> #include "yp_extern.h" +#ifndef lint +static const char rcsid[] = "$Id: yp_dnslookup.c,v 1.2 1996/05/01 02:37:46 wpaul Exp $"; +#endif + extern struct hostent *_gethostbydnsname __P(( char * )); extern struct hostent *_gethostbydnsaddr __P(( const char *, int, int )); |