diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-23 01:36:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-23 01:36:01 +0000 |
commit | 9c6467ae36963dbb156650f4363a2acb925d38cb (patch) | |
tree | 48a7476c28abd6307030727f0686f117c12f1140 | |
parent | ab0ae6b3a89d8fcfff0a483bccd6331c9b41b4fe (diff) |
alpha long problems
-rw-r--r-- | usr.sbin/amd/amd/info_hes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/amd/amd/info_hes.c b/usr.sbin/amd/amd/info_hes.c index 45c7b16ac76..d0b0314f0f3 100644 --- a/usr.sbin/amd/amd/info_hes.c +++ b/usr.sbin/amd/amd/info_hes.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)info_hes.c 8.1 (Berkeley) 6/6/93 - * $Id: info_hes.c,v 1.2 1997/01/31 14:41:58 graichen Exp $ + * $Id: info_hes.c,v 1.3 1997/06/23 01:36:00 deraadt Exp $ */ /* @@ -228,7 +228,7 @@ char *domain; int status, len; char buf[PACKETSZ]; /* Want to make sure ansbuf is well alligned */ - long ansbuf[PACKETSZ/sizeof(long)]; + u_int32_t ansbuf[PACKETSZ/sizeof(u_int32_t)]; #ifdef DEBUG dlog("hs_zone_transfer (%s)", domain); @@ -592,7 +592,7 @@ char *domain; register char *cp; register int n, len; char key[PACKETSZ], name[PACKETSZ], msg[PACKETSZ], *eom; - register long **hptr; + register u_int32_t **hptr; struct hostent *ghp; int numns; char nsname[MAXHSNS][MAXDATA]; @@ -625,7 +625,7 @@ char *domain; break; cp += n; type = _getshort(cp); - cp += 2*sizeof(u_short) + sizeof(u_long); + cp += 2*sizeof(u_short) + sizeof(u_int32_t); len = _getshort(cp); cp += sizeof(u_short); #ifdef DEBUG @@ -679,7 +679,7 @@ char *domain; continue; if ((ghp = gethostbyname(nsname[i])) == 0) continue; - for (hptr = (long **)ghp->h_addr_list; + for (hptr = (in_addr_t **)ghp->h_addr_list; *hptr && hs_nscount < MAX_NSADDR; hptr++) { add_address((struct in_addr *) *hptr); } |