diff options
author | Astonex <softukitu@gmail.com> | 2013-07-31 23:02:09 +0100 |
---|---|---|
committer | Astonex <softukitu@gmail.com> | 2013-07-31 23:02:09 +0100 |
commit | f05aa308701f33f3bf9df022a4b376deeedef235 (patch) | |
tree | c10b8a3cca6822400853bfd3bc2c5fd1cca73f83 /core/network.c | |
parent | 8dfba27242ca23fca5de852541f2101568dbf7cb (diff) | |
parent | c558cb63f6db35bd51f2f2331e21df03105ee82a (diff) |
Merge remote-tracking branch 'ProjectTox/master'
Diffstat (limited to 'core/network.c')
-rw-r--r-- | core/network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/network.c b/core/network.c index aa16bda9..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)); |
@@ -178,7 +178,7 @@ int resolve_addr(char *address) | |||
178 | 178 | ||
179 | struct addrinfo *server = NULL; | 179 | struct addrinfo *server = NULL; |
180 | 180 | ||
181 | int success = getaddrinfo(address, "7", &hints, &server); | 181 | int success = getaddrinfo(address, "echo", &hints, &server); |
182 | if(success != 0) | 182 | if(success != 0) |
183 | return -1; | 183 | return -1; |
184 | 184 | ||