]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence warnings.
authorMark Andrews <marka@isc.org>
Tue, 18 Feb 2003 03:27:58 +0000 (03:27 +0000)
committerMark Andrews <marka@isc.org>
Tue, 18 Feb 2003 03:27:58 +0000 (03:27 +0000)
bin/named/server.c

index f3ea4a649651613e992085725949fd29188094b6..3cf2ce4b59aaa9a624faf822459704d1874488e6 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: server.c,v 1.339.2.8.4.2 2003/02/17 07:05:04 marka Exp $ */
+/* $Id: server.c,v 1.339.2.8.4.3 2003/02/18 03:27:58 marka Exp $ */
 
 #include <config.h>
 
@@ -163,6 +163,7 @@ configure_view_acl(cfg_obj_t *vconfig, cfg_obj_t *config,
        return (result);
 }
 
+#ifdef ISC_RFC2335
 static isc_result_t
 configure_view_dnsseckey(cfg_obj_t *vconfig, cfg_obj_t *key,
                         dns_keytable_t *keytable, isc_mem_t *mctx)
@@ -258,6 +259,7 @@ configure_view_dnsseckey(cfg_obj_t *vconfig, cfg_obj_t *key,
 
        return (result);
 }
+#endif
 
 /*
  * Configure DNSSEC keys for a view.  Currently used only for
@@ -271,16 +273,21 @@ configure_view_dnsseckeys(cfg_obj_t *vconfig, cfg_obj_t *config,
                          isc_mem_t *mctx, dns_keytable_t **target)
 {
        isc_result_t result;
+#ifdef ISC_RFC2535
        cfg_obj_t *keys = NULL;
        cfg_obj_t *voptions = NULL;
        cfg_listelt_t *element, *element2;
        cfg_obj_t *keylist;
        cfg_obj_t *key;
+#endif
        dns_keytable_t *keytable = NULL;
 
        CHECK(dns_keytable_create(mctx, &keytable));
 
-#ifdef ISC_RFC2535
+#ifndef ISC_RFC2535
+       UNUSED(vconfig);
+       UNUSED(config);
+#else
        if (vconfig != NULL)
                voptions = cfg_tuple_get(vconfig, "options");