X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fipaccess.c;h=79508ab0eb113e4d72b32562fe4e9725118de058;hb=d5e8872563f6fde8299db971ffb6494c2438c590;hp=b152136c02ff0926bde78814747a40bc064476cd;hpb=ac9299abd0f9df15d52f19cf5c670ea88ba8e05c;p=libucw.git diff --git a/lib/ipaccess.c b/lib/ipaccess.c index b152136c..79508ab0 100644 --- a/lib/ipaccess.c +++ b/lib/ipaccess.c @@ -9,7 +9,8 @@ #include "lib/lib.h" #include "lib/clists.h" -#include "lib/conf2.h" +#include "lib/conf.h" +#include "lib/getopt.h" #include "lib/fastbuf.h" #include "lib/ipaccess.h" @@ -64,6 +65,7 @@ addrmask_dumper(struct fastbuf *fb, void *ptr) static struct cf_user_type addrmask_type = { .size = sizeof(struct addrmask), + .name = "addrmask", .parser = addrmask_parser, .dumper = addrmask_dumper }; @@ -102,7 +104,7 @@ static struct cf_section test_cf = { int main(int argc, char **argv) { cf_declare_section("T", &test_cf, 0); - if (cf_get_opt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) != -1) + if (cf_getopt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) != -1) die("Invalid arguments"); byte buf[256];