| 13 | }; |
| 14 | |
| 15 | static int extract_fd(const u8 *msg) |
| 16 | { |
| 17 | const u8 *p = msg + sizeof(u16); |
| 18 | size_t len = tal_count(msg) - sizeof(u16); |
| 19 | |
| 20 | if (fromwire_peektype(msg) != MSG_PASS_FD) |
| 21 | return -1; |
| 22 | |
| 23 | return fromwire_u32(&p, &len); |
| 24 | } |
| 25 | |
| 26 | /* Close any fds left in queue! */ |
| 27 | static void destroy_msg_queue(struct msg_queue *q) |
no test coverage detected