summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-05-10 09:55:08 +0000
committerRobert Pösel <robyer@seznam.cz>2013-05-10 09:55:08 +0000
commit443225723338ab61362ae37f7058c3f643febdf5 (patch)
tree9be1e72086ff8ae1053bc599706beb846122359b
parentb29ea624d53adbc50a9385c4e22d70c89a2a8e79 (diff)
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@4618 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/Skype/src/skype_account.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_account.cpp b/protocols/Skype/src/skype_account.cpp
index f0767b08fc..f834edb560 100644
--- a/protocols/Skype/src/skype_account.cpp
+++ b/protocols/Skype/src/skype_account.cpp
@@ -145,7 +145,7 @@ void CSkypeProto::SetAccountSettings()
this->Log(L"Setting port number to %d", port);
g_skype->SetInt(SETUPKEY_PORT, port);
- bool useAlternativePorts = (bool)::db_get_b(NULL, this->m_szModuleName, "UseAlternativePorts", 1);
+ bool useAlternativePorts = ::db_get_b(NULL, this->m_szModuleName, "UseAlternativePorts", 1) > 0;
if (useAlternativePorts)
this->Log(L"Setting listening of alternative ports (80, 443)");
g_skype->SetInt(SETUPKEY_DISABLE_PORT80, (int)!useAlternativePorts);