From 65014cc73c6f302923e2cf6f5c2b59f23e7884a3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 4 Oct 2016 17:49:19 +0000 Subject: wanwarning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@17353 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StatusPlugins/StartupStatus/profiles.cpp | 6 ++---- protocols/MSN/src/skylogin/login.c | 5 +---- protocols/Tox/src/tox_network.cpp | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/plugins/StatusPlugins/StartupStatus/profiles.cpp b/plugins/StatusPlugins/StartupStatus/profiles.cpp index faa14b04ca..51a4bccc71 100644 --- a/plugins/StatusPlugins/StartupStatus/profiles.cpp +++ b/plugins/StatusPlugins/StartupStatus/profiles.cpp @@ -200,12 +200,10 @@ static void CALLBACK releaseTtbTimerFunction(HWND, UINT, UINT_PTR, DWORD) CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)ttbButtons[i], 0); } -INT_PTR LoadAndSetProfile(WPARAM wParam, LPARAM) +INT_PTR LoadAndSetProfile(WPARAM iProfileNo, LPARAM) { // wParam == profile no. - int profileCount = GetProfileCount(0, 0); - int profile = (int)wParam; - + int profile = (int)iProfileNo; TSettingsList profileSettings(10, CompareSettings); if (!GetProfile(profile, profileSettings)) { profile = (profile >= 0) ? profile : db_get_w(NULL, MODULENAME, SETTING_DEFAULTPROFILE, 0); diff --git a/protocols/MSN/src/skylogin/login.c b/protocols/MSN/src/skylogin/login.c index b7931390b2..406ebe279e 100644 --- a/protocols/MSN/src/skylogin/login.c +++ b/protocols/MSN/src/skylogin/login.c @@ -284,7 +284,7 @@ static int SendAuthentificationBlobLS(Skype_Inst *pInst, LSConnection *pConn, co ObjOauth.Family = OBJ_FAMILY_STRING; ObjOauth.Id = OBJ_ID_OAUTH; ObjOauth.Value.Memory.Memory = (uchar *)User; - ObjOauth.Value.Memory.MsZ = strlen(User); + ObjOauth.Value.Memory.MsZ = (ulong)strlen(User); WriteObject(&Browser, ObjOauth); ObjVer.Family = OBJ_FAMILY_STRING; @@ -343,9 +343,6 @@ static int SendAuthentificationBlobLS(Skype_Inst *pInst, LSConnection *pConn, co ManageObjects(&Browser, BSize, &Response); for (Idx = 0; Idx < Response.NbObj; Idx++) { - uint LdIdx = 0; - - switch (Response.Objs[Idx].Id) { case OBJ_ID_LOGINANSWER: diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index 7ae6d1613c..e895f04dde 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -131,7 +131,7 @@ void CToxProto::BootstrapNodesFromJson(CToxThread *toxThread, bool isIPv6) void CToxProto::BootstrapNodes(CToxThread *toxThread) { debugLogA(__FUNCTION__": bootstraping DHT"); - bool isUdp = getBool("EnableUDP", 1); + // bool isUdp = getBool("EnableUDP", 1); bool isIPv6 = getBool("EnableIPv6", 0); BootstrapNodesFromDb(toxThread, isIPv6); BootstrapNodesFromJson(toxThread, isIPv6); -- cgit v1.2.3