return(0);
}
-static struct fnet adcnet = {
+static struct fnet adcnet_store = {
.connect = hubconnect,
.destroy = hubdestroy,
.setnick = hubsetnick,
.name = L"adc"
};
+static struct fnet *adcnet = &adcnet_store;
+
static int run(void)
{
int ret;
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;
{
if(hup)
return;
- regfnet(&adcnet);
+ regfnet(adcnet);
}
static int init(int hup)