/*
* Copyright (C) 2001, 2002, 2004, 2005, 2007, 2009-2011, 2015, 2016, 2018 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: cfg_test.c,v 1.25 2011/09/05 23:46:54 tbox Exp $ */
/*! \file */
#include <config.h>
#include <errno.h>
#include <stdlib.h>
#include <isccfg/namedconf.h>
static void
if (result == ISC_R_SUCCESS)
return;
exit(1);
}
static void
}
static void
usage(void) {
"[--grammar] [--memstats] conffile\n");
exit(1);
}
int
unsigned int zonetype = 0;
/*
* Create and install the default channel.
*/
/*
* Set the initial debug level.
*/
if (argc < 3)
usage();
while (argc > 1) {
if (argc <= 1) {
usage();
}
{
{
} else {
usage();
}
usage();
} else {
}
}
if (grammar) {
usage();
} else if (zonetype != 0) {
} else {
usage();
if (result != ISC_R_SUCCESS)
exit(1);
}
if (memstats)
return (1);
} else
return (0);
}