mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed function signature
This commit is contained in:
parent
1d8f6e94e7
commit
261f365e55
|
@ -169,7 +169,7 @@ void shutdown_networking()
|
||||||
address should represent IPv4, IPv6 or a hostname
|
address should represent IPv4, IPv6 or a hostname
|
||||||
on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i
|
on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i
|
||||||
on failure returns -1 */
|
on failure returns -1 */
|
||||||
int resolve_addr(char *address)
|
int resolve_addr(const char *address)
|
||||||
{
|
{
|
||||||
struct addrinfo hints;
|
struct addrinfo hints;
|
||||||
memset(&hints, 0, sizeof(hints));
|
memset(&hints, 0, sizeof(hints));
|
||||||
|
|
|
@ -125,7 +125,7 @@ void shutdown_networking();
|
||||||
address should represent IPv4, IPv6 or a hostname
|
address should represent IPv4, IPv6 or a hostname
|
||||||
on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i
|
on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i
|
||||||
on failure returns -1 */
|
on failure returns -1 */
|
||||||
int resolve_addr(char *address);
|
int resolve_addr(const char *address);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user