mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
common: cleanup unsused parameter in timer_expired()
This commit is contained in:
parent
f936fa926f
commit
605fda7214
@ -4077,7 +4077,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
expired = timers_expire(&peer->timers, now);
|
||||
if (expired) {
|
||||
timer_expired(peer, expired);
|
||||
timer_expired(expired);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ void *reltimer_arg(struct oneshot *t)
|
||||
return t->arg;
|
||||
}
|
||||
|
||||
void timer_expired(tal_t *ctx, struct timer *timer)
|
||||
void timer_expired(struct timer *timer)
|
||||
{
|
||||
struct oneshot *t = container_of(timer, struct oneshot, timer);
|
||||
|
||||
|
@ -18,6 +18,6 @@ struct oneshot *new_reltimer_(struct timers *timers,
|
||||
/* Get timer arg. */
|
||||
void *reltimer_arg(struct oneshot *t);
|
||||
|
||||
void timer_expired(tal_t *ctx, struct timer *timer);
|
||||
void timer_expired(struct timer *timer);
|
||||
|
||||
#endif /* LIGHTNING_COMMON_TIMEOUT_H */
|
||||
|
@ -2091,7 +2091,7 @@ int main(int argc, char *argv[])
|
||||
for (;;) {
|
||||
struct timer *expired;
|
||||
io_loop(&daemon->timers, &expired);
|
||||
timer_expired(daemon, expired);
|
||||
timer_expired(expired);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1548,7 +1548,7 @@ int main(int argc, char *argv[])
|
||||
struct timer *expired = NULL;
|
||||
io_loop(&daemon->timers, &expired);
|
||||
|
||||
timer_expired(daemon, expired);
|
||||
timer_expired(expired);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -302,7 +302,7 @@ void status_setup_async(struct daemon_conn *master UNNEEDED)
|
||||
void subdaemon_setup(int argc UNNEEDED, char *argv[])
|
||||
{ fprintf(stderr, "subdaemon_setup called!\n"); abort(); }
|
||||
/* Generated stub for timer_expired */
|
||||
void timer_expired(tal_t *ctx UNNEEDED, struct timer *timer UNNEEDED)
|
||||
void timer_expired(struct timer *timer UNNEEDED)
|
||||
{ fprintf(stderr, "timer_expired called!\n"); abort(); }
|
||||
/* Generated stub for towire_gossipd_addgossip_reply */
|
||||
u8 *towire_gossipd_addgossip_reply(const tal_t *ctx UNNEEDED, const wirestring *err UNNEEDED)
|
||||
|
@ -162,7 +162,7 @@ int main(int argc, char *argv[])
|
||||
t = timers_expire(&timers, timemono_add(time_mono(),
|
||||
time_from_sec(3601)));
|
||||
assert(t);
|
||||
timer_expired(NULL, t);
|
||||
timer_expired(t);
|
||||
|
||||
/* Still there, just old. Refresh scid1 */
|
||||
assert(rstate->num_txout_failures == 0);
|
||||
@ -172,7 +172,7 @@ int main(int argc, char *argv[])
|
||||
t = timers_expire(&timers, timemono_add(time_mono(),
|
||||
time_from_sec(3601)));
|
||||
assert(t);
|
||||
timer_expired(NULL, t);
|
||||
timer_expired(t);
|
||||
|
||||
assert(rstate->num_txout_failures == 0);
|
||||
assert(in_txout_failures(rstate, &scid1));
|
||||
|
@ -26,7 +26,7 @@ void *io_loop_with_timers(struct lightningd *ld)
|
||||
/* This routine is legal in early startup, too. */
|
||||
if (ld->wallet)
|
||||
db_begin_transaction(ld->wallet->db);
|
||||
timer_expired(ld, expired);
|
||||
timer_expired(expired);
|
||||
if (ld->wallet)
|
||||
db_commit_transaction(ld->wallet->db);
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ void shutdown_plugins(struct lightningd *ld UNNEEDED)
|
||||
void stop_topology(struct chain_topology *topo UNNEEDED)
|
||||
{ fprintf(stderr, "stop_topology called!\n"); abort(); }
|
||||
/* Generated stub for timer_expired */
|
||||
void timer_expired(tal_t *ctx UNNEEDED, struct timer *timer UNNEEDED)
|
||||
void timer_expired(struct timer *timer UNNEEDED)
|
||||
{ fprintf(stderr, "timer_expired called!\n"); abort(); }
|
||||
/* Generated stub for towire_bigsize */
|
||||
void towire_bigsize(u8 **pptr UNNEEDED, const bigsize_t val UNNEEDED)
|
||||
|
Loading…
Reference in New Issue
Block a user