* @param cp the address to print
* @param buf where to write the address result
*/
-static int inet_pton (int af, const char *cp, void *buf)
+static int inet_pton (int af, char *cp, void *buf)
{
int ret;
int ssize;
ssize = sizeof(buf);
ret = WSAStringToAddress (cp, af, NULL, (LPSOCKADDR)buf, &ssize);
- if (retval == 0)
+ if (ret == 0)
return 1;
else
return 0;