]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fixed a compiler warning due to prototype mismatch between doneloading()
authorEvan Hunt <each@isc.org>
Mon, 5 Sep 2011 03:45:22 +0000 (03:45 +0000)
committerEvan Hunt <each@isc.org>
Mon, 5 Sep 2011 03:45:22 +0000 (03:45 +0000)
and dns_zt_zoneloaded_t

lib/dns/zt.c

index 858d2e7d89c0a94ddb33a2749deb54ee200a6aec..ba121251e7522b468a4b2ea54ed7df635bf8eb2f 100644 (file)
@@ -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);
 }
 
 /***