diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:08:30 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:08:30 +0200 |
commit | cb3c88e020dbfd028f7d8b79b9bf97bcb0b34ea5 (patch) | |
tree | 77a4aa43ce21d7ade33243af9666e4a6fe2a4cb7 /src/peer.c | |
parent | 5d111c83ff2fb9fb1e094ccfdfa919a4731ec05b (diff) | |
download | fastd-cb3c88e020dbfd028f7d8b79b9bf97bcb0b34ea5.tar fastd-cb3c88e020dbfd028f7d8b79b9bf97bcb0b34ea5.zip |
Rename WITH_VERIFY CMake option to WITH_DYNAMIC_PEERS
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -738,7 +738,7 @@ fastd_peer_t* fastd_peer_add(fastd_peer_config_t *peer_conf) { pr_verbose("adding peer %P (group `%s')", peer, fastd_peer_get_group(peer)->name); } else { -#ifdef WITH_VERIFY +#ifdef WITH_DYNAMIC_PEERS if (!fastd_shell_command_isset(&conf.on_verify)) exit_bug("tried to add dynamic peer without on-verify command"); @@ -913,7 +913,7 @@ static bool maintain_peer(fastd_peer_t *peer) { if (fastd_peer_is_dynamic(peer) || fastd_peer_is_established(peer)) { /* check for peer timeout */ if (fastd_timed_out(&peer->timeout)) { -#ifdef WITH_VERIFY +#ifdef WITH_DYNAMIC_PEERS if (fastd_peer_is_dynamic(peer) && fastd_timed_out(&peer->verify_timeout) && fastd_timed_out(&peer->verify_valid_timeout)) { |