From cee9d6dc4201ddd06be8b921810c526bf60bc21e Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Mon, 5 Sep 2011 03:45:22 +0000 Subject: [PATCH] fixed a compiler warning due to prototype mismatch between doneloading() and dns_zt_zoneloaded_t --- lib/dns/zt.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/dns/zt.c b/lib/dns/zt.c index 858d2e7d89..ba121251e7 100644 --- a/lib/dns/zt.c +++ b/lib/dns/zt.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zt.c,v 1.53 2011/09/03 19:53:15 each Exp $ */ +/* $Id: zt.c,v 1.54 2011/09/05 03:45:22 each Exp $ */ /*! \file */ @@ -72,7 +72,7 @@ freezezones(dns_zone_t *zone, void *uap); void startloading(dns_zt_t *zt, dns_zone_t *zone); -void +isc_result_t doneloading(dns_zt_t *zt, dns_zone_t *zone, isc_task_t *task); isc_result_t @@ -466,7 +466,7 @@ dns_zt_apply2(dns_zt_t *zt, isc_boolean_t stop, isc_result_t *sub, * zero, call the loaddone callback that was initially set by * dns_zt_asyncload(). */ -void +isc_result_t doneloading(dns_zt_t *zt, dns_zone_t *zone, isc_task_t *task) { dns_zt_allloaded_t alldone = NULL; void *arg = NULL; @@ -489,6 +489,8 @@ doneloading(dns_zt_t *zt, dns_zone_t *zone, isc_task_t *task) { if (alldone != NULL) alldone(arg); + + return (ISC_R_SUCCESS); } /***