~ When we free a peer, we remove it from the daemon's hashtable. */
| 105 | |
| 106 | /*~ When we free a peer, we remove it from the daemon's hashtable. */ |
| 107 | static void destroy_peer(struct peer *peer) |
| 108 | { |
| 109 | if (!peer_htable_del(peer->daemon->peers, peer)) |
| 110 | abort(); |
| 111 | } |
| 112 | |
| 113 | /*~ This is where we create a new peer. */ |
| 114 | static struct peer *new_peer(struct daemon *daemon, |