Stop relying on struct ordering and packing for peer.

This commit is contained in:
Ian Gulliver
2016-03-08 20:47:22 -08:00
parent d39cd62991
commit 3985182304
7 changed files with 14 additions and 16 deletions

View File

@@ -99,7 +99,7 @@ static void send_del(struct send *send) {
}
static void send_del_wrapper(struct peer *peer) {
send_del((struct send *) peer);
send_del(container_of(peer, struct send, peer));
}
static void send_new(int fd, void *passthrough, struct peer *on_close) {