{
log_init(argv[0]);
cf_declare_section("top", &cf_top, 0);
- cf_def_file = "ucw/conf-test.cf";
+ cf_set_default_file("ucw/conf-test.cf");
int opt;
while ((opt = cf_getopt(argc, argv, short_opts, long_opts, NULL)) >= 0)
static int verbose;
int main(int argc, char *argv[]) {
- cf_def_file = "default.cf";
+ cf_set_default_file("default.cf");
int opt;
while((opt = cf_getopt(argc, argv, short_opts, long_opts, NULL)) >= 0)
switch(opt) {
{
srand(time(NULL));
log_init(argv[0]);
- cf_def_file = NULL;
+ cf_set_default_file(NULL);
if (cf_getopt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) >= 0 || argc != optind)
die("Invalid usage");
struct my_tree t;
struct my2_tree t2;
int i;
- cf_def_file = NULL;
+ cf_set_default_file(NULL);
log_init(argv[0]);
while ((opt = cf_getopt(argc, argv, options, CF_NO_LONG_OPTS, NULL)) >= 0)
switch (opt)