diff --git a/easysock.cpp b/easysock.cpp index b872fb0..ace9f79 100644 --- a/easysock.cpp +++ b/easysock.cpp @@ -128,7 +128,7 @@ int create_remote (int network,char transport,char* address,int port,struct sock } -int check_ip_ver(char* address) { +int check_ip_ver(const char* address) { char buffer[16]; /* 16 chars - 128 bits - is enough to hold an ipv6 address */ if (inet_pton(AF_INET,address,buffer) == 1) { return 4;