]> 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:21 +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 7793eec7879a0d62583c168592d2032a56ac11bf..1471b7bfb658f0db4fa31c390e6e47d5745e4a12 100644 (file)
@@ -336,7 +336,7 @@ named_config_parsedefaults(cfg_parser_t *parser, cfg_obj_t **conf) {
 }
 
 const char *
-named_config_getdefault() {
+named_config_getdefault(void) {
        return (defaultconf);
 }