more style cleanups
This commit is contained in:
@@ -600,7 +600,7 @@ void ScreenPackages::HTTPUpdate()
|
||||
int i = m_sBUFFER.find(" ");
|
||||
int j = m_sBUFFER.find(" ",i+1);
|
||||
int k = m_sBUFFER.Find("\n",j+1);
|
||||
if ( (i<0) || (j<0) || (k<0) )
|
||||
if ( i < 0 || j < 0 || k < 0 )
|
||||
{
|
||||
m_iResponceCode = -100;
|
||||
m_iResponceName = "Malformed responce.";
|
||||
@@ -646,13 +646,13 @@ void ScreenPackages::HTTPUpdate()
|
||||
m_bGotHeader=false;
|
||||
m_sStatus = ssprintf( "Done;%dB", int(m_iDownloaded) );
|
||||
|
||||
if ( ( m_iResponceCode < 200 ) || ( m_iResponceCode >= 400 ) )
|
||||
if( m_iResponceCode < 200 || m_iResponceCode >= 400 )
|
||||
{
|
||||
m_sStatus = ssprintf( "%d", m_iResponceCode ) + m_iResponceName;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( m_bIsPackage && ( m_iResponceCode < 300 ) )
|
||||
if( m_bIsPackage && m_iResponceCode < 300 )
|
||||
{
|
||||
m_fOutputFile.Flush();
|
||||
m_fOutputFile.Close();
|
||||
|
||||
Reference in New Issue
Block a user