From Corey Stup: when we're declaring stuff for WSAAddressToStringA, we should
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Aug 2009 22:29:58 +0000 (22:29 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Aug 2009 22:29:58 +0000 (22:29 +0000)
use the explicitly-narrow type LPSTR, not the switchable type LPTSTR. (Since
we currently build without UNICODE this makes no practical difference to us
now.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@8627 cda61777-01e9-0310-a592-d414129be87e

windows/winnet.c

index a839dfc..db5f54e 100644 (file)
@@ -204,7 +204,7 @@ DECL_WINSOCK_FUNCTION(static, int, getnameinfo,
 DECL_WINSOCK_FUNCTION(static, char *, gai_strerror, (int ecode));
 DECL_WINSOCK_FUNCTION(static, int, WSAAddressToStringA,
                      (LPSOCKADDR, DWORD, LPWSAPROTOCOL_INFO,
-                      LPTSTR, LPDWORD));
+                      LPSTR, LPDWORD));
 #endif
 
 static HMODULE winsock_module = NULL;