From 470c726bc894b1c528cb84e7e1f7e44770ffc485 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 30 Nov 2005 05:01:34 +0000 Subject: [PATCH] silence dereferencing type-punned pointer will break strict-aliasing rules warning --- lib/dns/validator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/validator.c b/lib/dns/validator.c index a85bdd4f06..8053ce62aa 100644 --- a/lib/dns/validator.c +++ b/lib/dns/validator.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: validator.c,v 1.136 2005/11/30 03:33:49 marka Exp $ */ +/* $Id: validator.c,v 1.137 2005/11/30 05:01:34 marka Exp $ */ /*! \file */ @@ -2819,7 +2819,7 @@ dns_validator_create(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type, cleanup_event: isc_task_detach(&tclone); - isc_event_free((isc_event_t **)&event); + isc_event_free(ISC_EVENT_PTR(&event)); cleanup_val: dns_view_weakdetach(&val->view);