cfg_test.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2001, 2002, 2004, 2005, 2007, 2009-2011, 2015, 2016 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
/*
* Create and install the default channel.
*/
/*
* Set the initial debug level.
*/
if (argc < 3)
usage();
while (argc > 1) {
usage();
} else {
}
}
if (grammar) {
usage();
} else {
usage();
if (result != ISC_R_SUCCESS)
exit(1);
}
if (memstats)
return (1);
} else
return (0);
}