chiark / gitweb /
cleanup: remove redundant "init_module" declarations
[secnet.git] / resolver.c
index 282db80..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;
@@ -74,7 +75,7 @@ static void resolver_afterpoll(void *sst, struct pollfd *fds, int nfds,
        } else if (rv==EAGAIN || rv==ESRCH) {
            break;
        } else {
-           fatal("resolver_afterpoll: adns_check() returned %d\n",rv);
+           fatal("resolver_afterpoll: adns_check() returned %d",rv);
        }
     }
 
@@ -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);