MCPcopy Create free account
hub / github.com/ElementsProject/lightning / master_gone

Function master_gone

connectd/connectd.c:2532–2536  ·  view source on GitHub ↗

~ UNUSED is defined to an __attribute__ for GCC; at one stage we tried to use * it ubiquitously to make us compile cleanly with -Wunused, but it's bitrotted * and we'd need to start again. * * The C++ method of omitting unused parameter names is *much* neater, and I * hope we'll eventually see it in a C standard. */

Source from the content-addressed store, hash-verified

2530 * The C++ method of omitting unused parameter names is *much* neater, and I
2531 * hope we'll eventually see it in a C standard. */
2532static void master_gone(struct daemon_conn *master UNUSED)
2533{
2534 /* Can't tell master, it's gone. */
2535 exit(2);
2536}
2537
2538/*~ gossipd sends us gossip to send to the peers. */
2539static struct io_plan *recv_gossip(struct io_conn *conn,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected