From 6798a76ffa1b4de4ec0ea07286c3510d86c0e3b6 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 19 Apr 2014 20:00:36 +0200 Subject: Store peers as vectors of pointers instead of linked lists --- src/fastd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fastd.h') diff --git a/src/fastd.h b/src/fastd.h index b7f3532..9cd6b2a 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -237,10 +237,10 @@ struct fastd_context { struct timespec now; - unsigned n_peers; fastd_peer_group_t *peer_group; - fastd_peer_t *peers; - fastd_peer_t *peers_temp; + + VECTOR(fastd_peer_t*) peers; + VECTOR(fastd_peer_t*) peers_temp; fastd_dlist_head_t handshake_queue; struct timespec next_maintenance; -- cgit v1.2.3