X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=conffile.c;h=e9c84d3cb4aa82fc9a49eeaea73d6f1eb8f0827b;hp=061fd7a98f2c0a17d58b5423122f49eb914b5e6e;hb=7138d0c54cd2212439434d27cb2d6ea775c3039b;hpb=b2a56f7c93d221607864761c590952b9a614dc9f diff --git a/conffile.c b/conffile.c index 061fd7a..e9c84d3 100644 --- a/conffile.c +++ b/conffile.c @@ -12,7 +12,10 @@ #include "conffile.h" #include "conffile_internal.h" #include "util.h" -#include "modules.h" +#include "ipaddr.h" + +/* from modules.c */ +extern void init_builtin_modules(dict_t *dict); static struct cloc no_loc={"none",0}; @@ -783,7 +786,7 @@ void dict_read_subnet_list(dict_t *dict, string_t key, bool_t required, cfgfatal(loc,desc,"required parameter \"%s\" not found\n",key); } /* Count the items in the list */ - for (li=l; li; li=li->next) e++; + e=list_length(l); if (e==0) return; sl->entries=e; sl->list=safe_malloc(sizeof(struct subnet)*e, "dict_read_subnet_list");