]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add missing void in named_config_getdefault() definition
authorOndřej Surý <ondrej@isc.org>
Wed, 4 May 2022 10:59:04 +0000 (12:59 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 4 May 2022 11:03:51 +0000 (13:03 +0200)
The named_config_getdefault() was missing void in the function
definition.  This broke clang-15 that didn't match the declaration that
had the void in the argument with the definition that hadn't.

bin/named/config.c

index 4e643625e2a748c83b92ff3805ed088853b2585e..cc95817e2d9499c43453f3d6ac4950a06950647d 100644 (file)
@@ -330,7 +330,7 @@ named_config_parsedefaults(cfg_parser_t *parser, cfg_obj_t **conf) {
 }
 
 const char *
-named_config_getdefault() {
+named_config_getdefault(void) {
        return (defaultconf);
 }