Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/bind/host LP64 tweak.



details:   https://anonhg.NetBSD.org/src/rev/d5c0eed71aac
branches:  trunk
changeset: 467896:d5c0eed71aac
user:      ross <ross%NetBSD.org@localhost>
date:      Tue Mar 30 20:36:58 1999 +0000

description:
LP64 tweak.

diffstat:

 usr.sbin/bind/host/host.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 154addb775d5 -r d5c0eed71aac usr.sbin/bind/host/host.c
--- a/usr.sbin/bind/host/host.c Tue Mar 30 20:07:56 1999 +0000
+++ b/usr.sbin/bind/host/host.c Tue Mar 30 20:36:58 1999 +0000
@@ -1,5 +1,5 @@
 #ifndef lint
-static char rcsid[] = "$Id: host.c,v 1.2 1999/03/26 20:12:45 kim Exp $";
+static char rcsid[] = "$Id: host.c,v 1.3 1999/03/30 20:36:58 ross Exp $";
 #endif /* not lint */
 
 /*
@@ -268,11 +268,13 @@
        ncnames = 5;
        while (hp == NULL && h_errno == TRY_AGAIN) {
                if (addr.s_addr == INADDR_NONE) {
+                       typedef unsigned long uL;
+
                        cname = NULL;
                        if (oldcname == NULL)
-                               hp = (struct hostent *)gethostinfo(v[1]);
+                               hp = (struct hostent *)(uL)gethostinfo(v[1]);
                        else
-                               hp = (struct hostent *)gethostinfo(oldcname);
+                               hp = (struct hostent *)(uL)gethostinfo(oldcname);
                        if (cname) {
                                if (ncnames-- == 0) {
                                        printf("Too many cnames.  Loop?\n");



Home | Main Index | Thread Index | Old Index