#include "lib/lib.h"
#include "lib/conf2.h"
#include "lib/clists.h"
+#include "lib/fastbuf.h"
#include <stdlib.h>
#include <stdio.h>
static struct sub_sect_1 sec1 = { {}, "Charlie", "WBAFC", { 0, -1} };
static struct clist secs;
static time_t t1, t2;
+static u32 ip;
static byte *
init_top(void *ptr UNUSED)
CF_PARSER("SecondTime", &t2, time_parser, 1),
CF_SECTION("master", &sec1, &cf_sec_1),
CF_LIST("slaves", &secs, &cf_sec_1),
+ CF_IP("ip", &ip),
CF_END
}
};
if (optind < argc)
usage();
+ struct fastbuf *out = bfdopen(1, 1<<14);
+ cf_dump_sections(out);
+ bclose(out);
+
return 0;
}