| 10 | } |
| 11 | |
| 12 | struct peer_fd *new_peer_fd(const tal_t *ctx, int peer_fdnum) |
| 13 | { |
| 14 | struct peer_fd *peer_fd = tal(ctx, struct peer_fd); |
| 15 | |
| 16 | peer_fd->fd = peer_fdnum; |
| 17 | tal_add_destructor(peer_fd, destroy_peer_fd); |
| 18 | return peer_fd; |
| 19 | } |
| 20 | |
| 21 | struct peer_fd *new_peer_fd_arr(const tal_t *ctx, const int *fd) |
| 22 | { |
no outgoing calls
no test coverage detected