X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f919ae347793585715d3008899779855df7fb984..eb6b14dc71402c42e0474779bfcd6e878383071e:/samples/sockets/baseserver.cpp diff --git a/samples/sockets/baseserver.cpp b/samples/sockets/baseserver.cpp index f00d05a2ed..67e5ebc495 100644 --- a/samples/sockets/baseserver.cpp +++ b/samples/sockets/baseserver.cpp @@ -4,7 +4,6 @@ // Author: Lukasz Michalski // Modified by: // Created: 27.06.2005 -// RCS-ID: $Id$ // Copyright: (c) 2005 Lukasz Michalski // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -258,7 +257,7 @@ Server::DumpStatistics() if ((int)(m_threadWorkersDone+m_eventWorkersDone) == m_maxConnections) { - wxLogMessage("%d connection(s) served, exiting",m_maxConnections); + wxLogMessage("%ld connection(s) served, exiting",m_maxConnections); ExitMainLoop(); } } @@ -279,7 +278,7 @@ Server::OnCmdLineParsed(wxCmdLineParser& pParser) if (pParser.Found("m",&m_maxConnections)) { - wxLogMessage("%d connection(s) to exit",m_maxConnections); + wxLogMessage("%ld connection(s) to exit",m_maxConnections); } long port; @@ -434,8 +433,8 @@ void Server::OnWorkerEvent(WorkerEvent& pEvent) { if (it->GetData() == pEvent.m_sender) { - wxLogVerbose("Deleting thread worker (%d left)", - m_threadWorkers.GetCount()); + wxLogVerbose("Deleting thread worker (%lu left)", + static_cast( m_threadWorkers.GetCount() )); it->GetData()->Wait(); delete it->GetData(); m_threadWorkers.DeleteNode(it); @@ -450,8 +449,8 @@ void Server::OnWorkerEvent(WorkerEvent& pEvent) { if (it2->GetData() == pEvent.m_sender) { - wxLogVerbose("Deleting event worker (%d left)", - m_eventWorkers.GetCount()); + wxLogVerbose("Deleting event worker (%lu left)", + static_cast( m_eventWorkers.GetCount() )); delete it2->GetData(); m_eventWorkers.DeleteNode(it2); if (!pEvent.m_workerFailed)