From cd768cbb8c5cb86bc4a816455406752d8d692e33 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sun, 27 Mar 2011 17:49:18 -0500 Subject: [PATCH] changed port number from a short to an unsigned int --- src/NetworkSyncManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NetworkSyncManager.cpp b/src/NetworkSyncManager.cpp index 21a8555c3d..697d87e4a5 100644 --- a/src/NetworkSyncManager.cpp +++ b/src/NetworkSyncManager.cpp @@ -107,12 +107,12 @@ void NetworkSyncManager::CloseConnection() void NetworkSyncManager::PostStartUp( const RString& ServerIP ) { RString sAddress; - short iPort; + unsigned int iPort; size_t cLoc = ServerIP.find( ':' ); if( ServerIP.find( ':' ) != RString::npos ) { - iPort = (short) atoi( ServerIP.substr( cLoc + 1 ).c_str() ); + iPort = (unsigned int)atoi( ServerIP.substr( cLoc + 1 ).c_str() ); sAddress = ServerIP.substr( 0, cLoc ); } else @@ -121,7 +121,7 @@ void NetworkSyncManager::PostStartUp( const RString& ServerIP ) sAddress = ServerIP; } - LOG->Info( "Attempting to connect to: %s, Port: %d", sAddress.c_str(), iPort ); + LOG->Info( "Attempting to connect to: %s, Port: %i", sAddress.c_str(), iPort ); CloseConnection(); if( !Connect(sAddress.c_str(), iPort) )