From: Fredrik Tolf Date: Thu, 4 Oct 2007 02:35:55 +0000 (+0200) Subject: Fix bug in request logger. X-Git-Tag: 1.0~32 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=38b22d1a1b70b48faf254383f4f28c31e39a0c72;p=doldaconnect.git Fix bug in request logger. --- diff --git a/daemon/reqstat.c b/daemon/reqstat.c index 41ca1c6..8a22dd8 100644 --- a/daemon/reqstat.c +++ b/daemon/reqstat.c @@ -122,12 +122,13 @@ static int chfile(struct configvar *var, void *uudata) return(0); } -static void preinit(int hup) +static int init(int hup) { if(!hup) { GCBREG(newtransfercb, reg, NULL); CBREG(confgetvar("reqstat", "file"), conf_update, chfile, NULL, NULL); } + return(0); } static struct configvar myvars[] = { @@ -141,8 +142,8 @@ static struct module me = { .conf = { .vars = myvars }, - .preinit = preinit, + .init = init, .name = "reqstat" }; -MODULE(me); +MODULE(me)