Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update svn:ignore.
[doldaconnect.git]
/
daemon
/
fnet-adc.c
diff --git
a/daemon/fnet-adc.c
b/daemon/fnet-adc.c
index
1357257
..
2fb9de8
100644
(file)
--- a/
daemon/fnet-adc.c
+++ b/
daemon/fnet-adc.c
@@
-376,7
+376,7
@@
static int hubreqconn(struct fnetpeer *peer)
return(0);
}
return(0);
}
-static struct fnet adcnet = {
+static struct fnet adcnet
_store
= {
.connect = hubconnect,
.destroy = hubdestroy,
.setnick = hubsetnick,
.connect = hubconnect,
.destroy = hubdestroy,
.setnick = hubsetnick,
@@
-384,6
+384,8
@@
static struct fnet adcnet = {
.name = L"adc"
};
.name = L"adc"
};
+static struct fnet *adcnet = &adcnet_store;
+
static int run(void)
{
int ret;
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;
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;
continue;
if((hub = fn->data) == NULL)
continue;
@@
-413,7
+415,7
@@
static void preinit(int hup)
{
if(hup)
return;
{
if(hup)
return;
- regfnet(
&
adcnet);
+ regfnet(adcnet);
}
static int init(int hup)
}
static int init(int hup)