diff options
author | jb <jb@FreeBSD.org> | 1998-08-18 01:46:58 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-08-18 01:46:58 +0000 |
commit | 35cbb372afde37979d24268d780cf2e7165e4fb3 (patch) | |
tree | 2047d6ded2b7a91e5c494de1a8df4c14d85dcc6d /contrib/bind | |
parent | 31ebefe816872510299608811026f5d71bc1c8a9 (diff) | |
download | FreeBSD-src-35cbb372afde37979d24268d780cf2e7165e4fb3.zip FreeBSD-src-35cbb372afde37979d24268d780cf2e7165e4fb3.tar.gz |
Add #include string.h to get prototypes.
Cast a pointer to u_long instead of u_int32_t to avoid a warning. This
is cosmetic because the code is just looking for the remainder.
Diffstat (limited to 'contrib/bind')
-rw-r--r-- | contrib/bind/bin/nslookup/getinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/bind/bin/nslookup/getinfo.c b/contrib/bind/bin/nslookup/getinfo.c index 20601e5..abd747b 100644 --- a/contrib/bind/bin/nslookup/getinfo.c +++ b/contrib/bind/bin/nslookup/getinfo.c @@ -82,6 +82,7 @@ static char rcsid[] = "$Id: getinfo.c,v 8.11 1998/03/19 19:30:55 halley Exp $"; #include <resolv.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include "port_after.h" @@ -319,7 +320,7 @@ GetAnswer(nsAddrPtr, queryType, msg, msglen, iquery, hostPtr, isServer) hostPtr->name = Calloc(1, len); memcpy(hostPtr->name, bp, 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) { |