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

Function destroy_commando

plugins/commando.c:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static void destroy_commando(struct commando *commando, struct commando ***arr)
81{
82 for (size_t i = 0; i < tal_count(*arr); i++) {
83 if ((*arr)[i] == commando) {
84 tal_arr_remove(arr, i);
85 return;
86 }
87 }
88 abort();
89}
90
91/* Append to commando->contents: set to NULL if we've over max. */
92static 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