From c6b496d85b60e0177d0baa0f9cbbbc2c2199f924 Mon Sep 17 00:00:00 2001 From: slvr Date: Mon, 12 Aug 2013 14:44:59 +0100 Subject: [PATCH] Messenger Timer --- core/Messenger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/Messenger.c b/core/Messenger.c index e70b0378..e88206f3 100644 --- a/core/Messenger.c +++ b/core/Messenger.c @@ -670,18 +670,19 @@ static void doInbound(void) } } +#define PORT 33445 + /*Interval in seconds between LAN discovery packet sending*/ #define LAN_DISCOVERY_INTERVAL 60 /*Send a LAN discovery packet every LAN_DISCOVERY_INTERVAL seconds*/ -static int LANdiscovery_timercallback(timer* t, void*) +static int LANdiscovery_timercallback(timer* t, void* ignore) { send_LANdiscovery(htons(PORT)); timer_start(t, LAN_DISCOVERY_INTERVAL); return 0; } -#define PORT 33445 /* run this at startup */ int initMessenger(void) { @@ -715,7 +716,6 @@ void doMessenger(void) doNetCrypto(); doInbound(); doFriends(); - LANdiscovery(); } /* returns the size of the messenger data (for saving) */