summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-25 00:20:05 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-25 00:20:05 +0200
commitf34e51a1c3b98df2b7c8c7d7eb415a33f42f2d75 (patch)
tree0edd536548163077da4c22ce7785936a3f9c06a6 /src/fastd.c
parent1b21919d544e30cec89259cfa9353e10852cfc82 (diff)
downloadfastd-f34e51a1c3b98df2b7c8c7d7eb415a33f42f2d75.tar
fastd-f34e51a1c3b98df2b7c8c7d7eb415a33f42f2d75.zip
Make a few struct fields that are not supposed to be changed defines instead
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 8dbfc74..a3c6d14 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -307,7 +307,7 @@ static inline void maintenance(void) {
fastd_socket_handle_binds();
fastd_peer_maintenance();
- ctx.next_maintenance.tv_sec += conf.maintenance_interval;
+ ctx.next_maintenance.tv_sec += MAINTENANCE_INTERVAL;
}
@@ -541,7 +541,7 @@ int main(int argc, char *argv[]) {
fastd_update_time();
- ctx.next_maintenance = fastd_in_seconds(conf.maintenance_interval);
+ ctx.next_maintenance = fastd_in_seconds(MAINTENANCE_INTERVAL);
ctx.unknown_handshakes[0].timeout = ctx.now;