From ae38212c1ce829c783edf971081c90137abb49a0 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Sun, 25 Jul 2010 21:58:20 -0400 Subject: Epic commit to replace most of the strings in Anope with a single Anope::string class, plus some other little fixes here and there. If you follow 1.9.x development and are testing things, THIS is one of those things that NEEDS testing. --- src/win32/windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/win32') diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp index 6568e860e..9ea3dad09 100644 --- a/src/win32/windows.cpp +++ b/src/win32/windows.cpp @@ -47,7 +47,7 @@ int inet_pton(int af, const char *src, void *dst) return -1; } - if (!WSAStringToAddress((LPSTR) src, af, NULL, reinterpret_cast(&sa), &address_length)) + if (!WSAStringToAddress(static_cast(const_cast(src)), af, NULL, reinterpret_cast(&sa), &address_length)) { switch (af) { -- cgit