summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-23 02:22:38 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-02-24 22:20:22 +0000
commitd3b286cb434ed228e7b62cc70cb293e7a5554bfa (patch)
tree9ab3dd66f9dba2ca861ba8c6e098fb96754aa80b /toxcore/network.h
parentafc80922e720f5d2a93bdfb3745da058e5ddf81b (diff)
Fix a bunch of compiler warnings and remove suppressions.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 8b5af47c..405721b2 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -33,6 +33,7 @@
33#include "ccompat.h" 33#include "ccompat.h"
34#include "logger.h" 34#include "logger.h"
35 35
36#include <stdbool.h>
36#include <stdint.h> 37#include <stdint.h>
37#include <stdio.h> 38#include <stdio.h>
38#include <stdlib.h> 39#include <stdlib.h>
@@ -187,7 +188,7 @@ size_t net_unpack_u64(const uint8_t *bytes, uint64_t *v);
187#define SIZE_PORT 2 188#define SIZE_PORT 2
188#define SIZE_IPPORT (SIZE_IP + SIZE_PORT) 189#define SIZE_IPPORT (SIZE_IP + SIZE_PORT)
189 190
190#define TOX_ENABLE_IPV6_DEFAULT 1 191#define TOX_ENABLE_IPV6_DEFAULT true
191 192
192/* addr_resolve return values */ 193/* addr_resolve return values */
193#define TOX_ADDR_RESOLVE_INET 1 194#define TOX_ADDR_RESOLVE_INET 1
@@ -260,7 +261,7 @@ int ipport_equal(const IP_Port *a, const IP_Port *b);
260/* nulls out ip */ 261/* nulls out ip */
261void ip_reset(IP *ip); 262void ip_reset(IP *ip);
262/* nulls out ip, sets family according to flag */ 263/* nulls out ip, sets family according to flag */
263void ip_init(IP *ip, uint8_t ipv6enabled); 264void ip_init(IP *ip, bool ipv6enabled);
264/* checks if ip is valid */ 265/* checks if ip is valid */
265int ip_isset(const IP *ip); 266int ip_isset(const IP *ip);
266/* checks if ip is valid */ 267/* checks if ip is valid */