X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Ffnet-adc.c;h=2fb9de8918888105627783ab51fa518e3c73e238;hb=01663fd9f926b17092dba5beb571488aaf11edf9;hp=1357257e88654e249174dbebfa2bda59a3786499;hpb=58e83d6a687fa3c5b27f255d64c2770df5c8aff5;p=doldaconnect.git diff --git a/daemon/fnet-adc.c b/daemon/fnet-adc.c index 1357257..2fb9de8 100644 --- a/daemon/fnet-adc.c +++ b/daemon/fnet-adc.c @@ -376,7 +376,7 @@ static int hubreqconn(struct fnetpeer *peer) return(0); } -static struct fnet adcnet = { +static struct fnet adcnet_store = { .connect = hubconnect, .destroy = hubdestroy, .setnick = hubsetnick, @@ -384,6 +384,8 @@ static struct fnet adcnet = { .name = L"adc" }; +static struct fnet *adcnet = &adcnet_store; + static int run(void) { int ret; @@ -394,7 +396,7 @@ static int run(void) ret = 0; for(fn = fnetnodes; fn != NULL; fn = nextfn) { nextfn = fn->next; - if(fn->fnet != &adcnet) + if(fn->fnet != adcnet) continue; if((hub = fn->data) == NULL) continue; @@ -413,7 +415,7 @@ static void preinit(int hup) { if(hup) return; - regfnet(&adcnet); + regfnet(adcnet); } static int init(int hup)