more casts

This commit is contained in:
christos 2013-12-19 22:05:58 +00:00
parent 498745e28e
commit b8192c839d
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: alloc.c,v 1.1.1.2 2013/03/24 22:50:29 christos Exp $ */
/* $NetBSD: alloc.c,v 1.2 2013/12/19 22:05:58 christos Exp $ */
/* alloc.c
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: alloc.c,v 1.1.1.2 2013/03/24 22:50:29 christos Exp $");
__RCSID("$NetBSD: alloc.c,v 1.2 2013/12/19 22:05:58 christos Exp $");
#include "dhcpd.h"
#include <omapip/omapip_p.h>
@ -146,7 +146,7 @@ int option_chain_head_dereference (ptr, file, line)
cdr = car -> cdr;
if (car -> car)
option_cache_dereference ((struct option_cache **)
(&car -> car), MDL);
(void *)(&car -> car), MDL);
dfree (car, MDL);
car = cdr;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: discover.c,v 1.2 2013/03/24 15:53:58 christos Exp $ */
/* $NetBSD: discover.c,v 1.3 2013/12/19 22:05:58 christos Exp $ */
/* discover.c
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: discover.c,v 1.2 2013/03/24 15:53:58 christos Exp $");
__RCSID("$NetBSD: discover.c,v 1.3 2013/12/19 22:05:58 christos Exp $");
#include "dhcpd.h"
@ -1580,7 +1580,7 @@ isc_result_t dhcp_interface_destroy (omapi_object_t *h,
interface -> client = (struct client_state *)0;
if (interface -> shared_network)
omapi_object_dereference ((omapi_object_t **)
omapi_object_dereference ((void *)
&interface -> shared_network, MDL);
return ISC_R_SUCCESS;