summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 19:00:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 19:00:23 +0000
commit4216a5f797e8a015eb91bd835c9f62033f07f6e3 (patch)
tree6e7942e96f083c6e96f51b3c43ec707da3fcc2d6
parentdffe7e50267bb71ec5ff025200096cf1d76c816b (diff)
Cast pointer to u_long, not u_int32_t (which is too small on alpha)
-rw-r--r--usr.sbin/named/nslookup/getinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/named/nslookup/getinfo.c b/usr.sbin/named/nslookup/getinfo.c
index 51b0b55b39c..8d0b6cf4589 100644
--- a/usr.sbin/named/nslookup/getinfo.c
+++ b/usr.sbin/named/nslookup/getinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getinfo.c,v 1.2 1997/03/12 10:42:47 downsj Exp $ */
+/* $OpenBSD: getinfo.c,v 1.3 1997/04/06 19:00:22 millert Exp $ */
/*
* ++Copyright++ 1985, 1989
@@ -60,7 +60,7 @@
static char sccsid[] = "@(#)getinfo.c 5.26 (Berkeley) 3/21/91";
static char rcsid[] = "$From: getinfo.c,v 8.6 1996/12/02 09:17:24 vixie Exp $";
#else
-static char rcsid[] = "$OpenBSD: getinfo.c,v 1.2 1997/03/12 10:42:47 downsj Exp $";
+static char rcsid[] = "$OpenBSD: getinfo.c,v 1.3 1997/04/06 19:00:22 millert Exp $";
#endif
#endif /* not lint */
@@ -306,7 +306,7 @@ GetAnswer(nsAddrPtr, queryType, msg, msglen, iquery, hostPtr, isServer)
hostPtr->name = Calloc(1, len);
bcopy(bp, hostPtr->name, len);
}
- bp += (((u_int32_t)bp) % sizeof(align));
+ bp += (((u_long)bp) % sizeof(align));
if (bp + dlen >= &hostbuf[sizeof(hostbuf)]) {
if (_res.options & RES_DEBUG) {