1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

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.
This commit is contained in:
John Birrell 1998-08-18 01:46:58 +00:00
parent b6f5f44231
commit 87e904fdcf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38415

View File

@ -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) {