From 0cfbe004ef30e5a601f965e625ab42a490e13e15 Mon Sep 17 00:00:00 2001 From: "Coren[m]" Date: Thu, 12 Sep 2013 16:07:51 +0200 Subject: Messenger.c: - remove local PORT definition in favor of TOX_PORT_DEFAULT --- toxcore/Messenger.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 166f9779..1b276602 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -639,13 +639,12 @@ int write_cryptpacket_id(Messenger *m, int friendnumber, uint8_t packet_id, uint /* Interval in seconds between LAN discovery packet sending. */ #define LAN_DISCOVERY_INTERVAL 60 -#define PORT 33445 /* Send a LAN discovery packet every LAN_DISCOVERY_INTERVAL seconds. */ static void LANdiscovery(Messenger *m) { if (m->last_LANdiscovery + LAN_DISCOVERY_INTERVAL < unix_time()) { - send_LANdiscovery(htons(PORT), m->net_crypto); + send_LANdiscovery(TOX_PORT_DEFAULT, m->net_crypto); m->last_LANdiscovery = unix_time(); } } @@ -660,7 +659,7 @@ Messenger *initMessenger(uint8_t ipv6enabled) IP ip; ip_init(&ip, ipv6enabled); - m->net = new_networking(ip, PORT); + m->net = new_networking(ip, TOX_PORT_DEFAULT); if (m->net == NULL) { free(m); -- cgit v1.2.3