]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix the discrepancy between cfg_pluginlist_foreach declaration and definition
authorOndřej Surý <ondrej@isc.org>
Wed, 15 Apr 2020 10:50:28 +0000 (12:50 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 15 Apr 2020 10:50:28 +0000 (12:50 +0200)
There was a missing indirection for the pluginlist_cb_t *callback in the
declaration of the cfg_pluginlist_foreach function.  Reported by MSVC as:

  lib\isccfg\parser.c(4057): warning C4028: formal parameter 4 different from declaration

lib/isccfg/include/isccfg/cfg.h

index 3123a9b39fe58a90459ab4eb82a3e357051598f6..eda5b46a69a1c5cb719d233970908e5af7bbd223 100644 (file)
@@ -597,7 +597,7 @@ typedef isc_result_t(pluginlist_cb_t)(const cfg_obj_t *config,
 
 isc_result_t
 cfg_pluginlist_foreach(const cfg_obj_t *config, const cfg_obj_t *list,
-                      isc_log_t *lctx, pluginlist_cb_t callback,
+                      isc_log_t *lctx, pluginlist_cb_t *callback,
                       void *callback_data);
 /*%<
  * For every "plugin" stanza present in 'list' (which in turn is a part of