summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/yp_dnslookup.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-05-31 16:01:51 +0000
committerwpaul <wpaul@FreeBSD.org>1996-05-31 16:01:51 +0000
commit7db7b1cde125e2f1b07ce515a44386287ffe20e3 (patch)
tree09d1229ceb91ce3fd14b2705728d76c9b2ed0f9f /usr.sbin/ypserv/yp_dnslookup.c
parentd4c70b6e6444ede1b94fe2e860bc791d28cd0604 (diff)
downloadFreeBSD-src-7db7b1cde125e2f1b07ce515a44386287ffe20e3.zip
FreeBSD-src-7db7b1cde125e2f1b07ce515a44386287ffe20e3.tar.gz
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.)
Diffstat (limited to 'usr.sbin/ypserv/yp_dnslookup.c')
-rw-r--r--usr.sbin/ypserv/yp_dnslookup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_dnslookup.c b/usr.sbin/ypserv/yp_dnslookup.c
index a3d4b7a..c578d6b 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 ));
OpenPOWER on IntegriCloud