diff --git a/includes/easysock.hpp b/includes/easysock.hpp index 68563d4..fed9e0e 100644 --- a/includes/easysock.hpp +++ b/includes/easysock.hpp @@ -55,7 +55,7 @@ int create_remote (int network,char transport,char* address,int port,struct sock /* check_ip_ver - This function checks if the given string is an IPv4 address (returns 4), IPv6 address (returns 6) or neither (returns -1). */ -int check_ip_ver(char* address); +int check_ip_ver(const char* address); /* int_to_inet - Takes an int value (4 for IPv4, 6 for IPv6) and returns AF_INET or AF_INET6 respectively. */