From: Peter Åstrand Date: Tue, 9 Dec 2008 10:48:44 +0000 (+0000) Subject: MinGW tweak: ISO C++ forbids declaration of `requestAddressChangeEvents' with no... X-Git-Tag: v0.0.90~334 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f14f0d03e78ae343a8db61f20f59d4af7480c746;p=tigervnc.git MinGW tweak: ISO C++ forbids declaration of `requestAddressChangeEvents' with no type. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3332 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/win/rfb_win32/SocketManager.cxx b/win/rfb_win32/SocketManager.cxx index 1d52bc86..b33d165a 100644 --- a/win/rfb_win32/SocketManager.cxx +++ b/win/rfb_win32/SocketManager.cxx @@ -38,7 +38,7 @@ SocketManager::~SocketManager() { } -static requestAddressChangeEvents(network::SocketListener* sock_) { +static void requestAddressChangeEvents(network::SocketListener* sock_) { DWORD dummy = 0; if (WSAIoctl(sock_->getFd(), SIO_ADDRESS_LIST_CHANGE, 0, 0, 0, 0, &dummy, 0, 0) == SOCKET_ERROR) { DWORD err = WSAGetLastError();