Fixed function signature

This commit is contained in:
Maxim Biro 2013-07-29 20:47:12 -04:00
parent 1d8f6e94e7
commit 261f365e55
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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
} }