diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/CMakeLists.txt | 14 | ||||
-rw-r--r-- | core/network.c | 2 | ||||
-rw-r--r-- | core/network.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 6ddd5b9b..420308d8 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt | |||
@@ -6,12 +6,12 @@ if(WIN32) | |||
6 | endif() | 6 | endif() |
7 | 7 | ||
8 | set(core_sources | 8 | set(core_sources |
9 | DHT.c | 9 | DHT.c |
10 | network.c | 10 | network.c |
11 | Lossless_UDP.c | 11 | Lossless_UDP.c |
12 | net_crypto.c | 12 | net_crypto.c |
13 | friend_requests.c | 13 | friend_requests.c |
14 | LAN_discovery.c | 14 | LAN_discovery.c |
15 | Messenger.c) | 15 | Messenger.c) |
16 | 16 | ||
17 | add_library(core ${core_sources}) | 17 | add_library(core ${core_sources}) |
diff --git a/core/network.c b/core/network.c index 3cd53ef7..a7a4efcd 100644 --- a/core/network.c +++ b/core/network.c | |||
@@ -169,7 +169,7 @@ void shutdown_networking() | |||
169 | address should represent IPv4, IPv6 or a hostname | 169 | address should represent IPv4, IPv6 or a hostname |
170 | on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i | 170 | on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i |
171 | on failure returns -1 */ | 171 | on failure returns -1 */ |
172 | int resolve_addr(char *address) | 172 | int resolve_addr(const char *address) |
173 | { | 173 | { |
174 | struct addrinfo hints; | 174 | struct addrinfo hints; |
175 | memset(&hints, 0, sizeof(hints)); | 175 | memset(&hints, 0, sizeof(hints)); |
diff --git a/core/network.h b/core/network.h index aaaaa409..8af4b32f 100644 --- a/core/network.h +++ b/core/network.h | |||
@@ -125,7 +125,7 @@ void shutdown_networking(); | |||
125 | address should represent IPv4, IPv6 or a hostname | 125 | address should represent IPv4, IPv6 or a hostname |
126 | on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i | 126 | on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i |
127 | on failure returns -1 */ | 127 | on failure returns -1 */ |
128 | int resolve_addr(char *address); | 128 | int resolve_addr(const char *address); |
129 | 129 | ||
130 | #ifdef __cplusplus | 130 | #ifdef __cplusplus |
131 | } | 131 | } |