summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-19 20:00:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-19 20:00:36 +0200
commit6798a76ffa1b4de4ec0ea07286c3510d86c0e3b6 (patch)
treea755a36afca70baaab878d391341129eb95e0873 /src/fastd.h
parent2e14d72936d1ccfb6faed4a20dec7072fb6d8232 (diff)
downloadfastd-6798a76ffa1b4de4ec0ea07286c3510d86c0e3b6.tar
fastd-6798a76ffa1b4de4ec0ea07286c3510d86c0e3b6.zip
Store peers as vectors of pointers instead of linked lists
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h6
1 files changed, 3 insertions, 3 deletions
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;