From 2fbed5b4c55ca92edbd436d4d0fa0a35506855c3 Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 10 Jan 2018 16:44:49 +0000 Subject: Move Networking_Core struct into the .c file. To make it an abstract type everywhere except in network.c. --- toxcore/tox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/tox.c') diff --git a/toxcore/tox.c b/toxcore/tox.c index f16002f4..ca81cbbc 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -1526,7 +1526,7 @@ void tox_self_get_dht_id(const Tox *tox, uint8_t *dht_id) uint16_t tox_self_get_udp_port(const Tox *tox, TOX_ERR_GET_PORT *error) { const Messenger *m = tox; - uint16_t port = net_htons(m->net->port); + uint16_t port = net_htons(net_port(m->net)); if (port) { SET_ERROR_PARAMETER(error, TOX_ERR_GET_PORT_OK); -- cgit v1.2.3