2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

Cast a pointer to an unsigned long, not an unsigned int, before doing bit

manipulations.
This commit is contained in:
Brian Wellington 2000-06-26 20:39:42 +00:00
parent 1d1d2fa57a
commit 234878743f

View File

@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: gethost.c,v 1.17 2000/06/22 21:59:27 tale Exp $ */
/* $Id: gethost.c,v 1.18 2000/06/26 20:39:42 bwelling Exp $ */
#include <config.h>
@ -29,7 +29,7 @@
#define LWRES_ALIGNBYTES (sizeof(char *) - 1)
#define LWRES_ALIGN(p) \
(((unsigned int)(p) + LWRES_ALIGNBYTES) &~ LWRES_ALIGNBYTES)
(((unsigned long)(p) + LWRES_ALIGNBYTES) &~ LWRES_ALIGNBYTES)
static struct hostent *he = NULL;
static int copytobuf(struct hostent *, struct hostent *, char *, int);