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

Function destroy_commando

plugins/commando.c:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static void destroy_commando(struct commando *commando, struct commando ***arr)
84{
85 for (size_t i = 0; i < tal_count(*arr); i++) {
86 if ((*arr)[i] == commando) {
87 tal_arr_remove(arr, i);
88 return;
89 }
90 }
91 abort();
92}
93
94/* Append to commando->contents: set to NULL if we've over max. */
95static void append_contents(struct commando *commando, const u8 *msg, size_t msglen,

Callers 1

try_commandFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected