| 20 | } |
| 21 | |
| 22 | static struct ping_command *find_ping_command(struct lightningd *ld, |
| 23 | u64 reqid) |
| 24 | { |
| 25 | struct ping_command *i; |
| 26 | list_for_each(&ld->ping_commands, i, list) { |
| 27 | if (i->reqid == reqid) |
| 28 | return i; |
| 29 | } |
| 30 | return NULL; |
| 31 | } |
| 32 | |
| 33 | void handle_ping_done(struct subd *connectd, const u8 *msg) |
| 34 | { |