summaryrefslogtreecommitdiff
path: root/toxcore/LAN_discovery.api.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-05-02 00:34:13 +0100
committeriphydf <iphydf@users.noreply.github.com>2020-05-02 22:00:09 +0100
commitf8ab32aaa4efce2c9a310a14d10b19fb8544cfd9 (patch)
tree4dbc49882d6af0954c533b2482b2100d312d2bc7 /toxcore/LAN_discovery.api.h
parent2570ddcb17fdf5bea56c6bc1c5c2d04ba2068ee7 (diff)
Add a check that we don't have any unused functions.
This check puts all of our code in a C++ anonymous namespace, which is effectively making all functions `static`. This allows the compiler to determine that a function is unused, so we can delete it.
Diffstat (limited to 'toxcore/LAN_discovery.api.h')
-rw-r--r--toxcore/LAN_discovery.api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/LAN_discovery.api.h b/toxcore/LAN_discovery.api.h
index 5c25b67b..ad3d60ed 100644
--- a/toxcore/LAN_discovery.api.h
+++ b/toxcore/LAN_discovery.api.h
@@ -21,7 +21,7 @@ namespace lan_discovery {
21/** 21/**
22 * Interval in seconds between LAN discovery packet sending. 22 * Interval in seconds between LAN discovery packet sending.
23 */ 23 */
24const INTERVAL = 10; 24#define LAN_DISCOVERY_INTERVAL 10
25 25
26/** 26/**
27 * Send a LAN discovery pcaket to the broadcast address with port port. 27 * Send a LAN discovery pcaket to the broadcast address with port port.