mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Cast a pointer to an unsigned long, not an unsigned int, before doing bit
manipulations.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user