X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=announce.c;h=4971c4e3e70eedbca333612a926d83c582caf7cf;hb=70ec71015a42e6e4e04b0281b80ec80e5f5f959a;hp=7b527940df7d912c0163f10304bf77380a25fbd4;hpb=f13f07d145515b80b6f7cc3e1b06dc262ded174d;p=project%2Fmdnsd.git diff --git a/announce.c b/announce.c index 7b52794..4971c4e 100644 --- a/announce.c +++ b/announce.c @@ -36,7 +36,6 @@ enum { }; static struct uloop_timeout announce; -struct uloop_fd *announce_fd; static int announce_state; int announce_ttl = 75 * 60; @@ -69,17 +68,16 @@ announce_timer(struct uloop_timeout *timeout) announce_state++; case STATE_ANNOUNCE: - service_announce(announce_fd); + service_announce(cur_iface); uloop_timeout_set(timeout, announce_ttl * 800); break; } } void -announce_init(struct uloop_fd *u) +announce_init(void) { announce_state = STATE_PROBE1; announce.cb = announce_timer; - announce_fd = u; uloop_timeout_set(&announce, 100); }