chiark / gitweb /
cleanup: fix up the type of string buffers
[secnet.git] / resolver.c
index 8ffdc28..b7c56e3 100644 (file)
@@ -21,7 +21,8 @@ struct query {
     adns_query query;
 };
 
-static bool_t resolve_request(void *sst, string_t name,
+static resolve_request_fn resolve_request;
+static bool_t resolve_request(void *sst, cstring_t name,
                              resolve_answer_fn *cb, void *cst)
 {
     struct adns *st=sst;
@@ -122,7 +123,6 @@ static list_t *adnsresolver_apply(closure_t *self, struct cloc loc,
     return new_closure(&st->cl);
 }
 
-init_module resolver_module;
 void resolver_module(dict_t *dict)
 {
     add_closure(dict,"adns",adnsresolver_apply);