summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-01-06 12:29:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-01-06 12:29:10 +0000
commitf47f0588198969e731e7a891c10de5b4627742cb (patch)
tree5f69d26900febc4b86bb9f9669743657af8505c8 /protocols/Yahoo/src/proto.cpp
parentd59bd1a4e5cdb03de7ae785411ba2a7f08b72999 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2994 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/src/proto.cpp')
-rw-r--r--protocols/Yahoo/src/proto.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/protocols/Yahoo/src/proto.cpp b/protocols/Yahoo/src/proto.cpp
index 46616b1d46..05d6484548 100644
--- a/protocols/Yahoo/src/proto.cpp
+++ b/protocols/Yahoo/src/proto.cpp
@@ -136,7 +136,7 @@ HANDLE CYahooProto::AddToList( int flags, PROTOSEARCHRESULT* psr )
mir_free(id);
return 0;
}
- } else if (flags & PALF_TEMPORARY ) { /* not on our list */
+ } else if (flags & PALF_TEMPORARY) { /* not on our list */
DebugLog("[YahooAddToList] Adding Temporary Buddy:%s ", id);
}
@@ -237,10 +237,7 @@ int CYahooProto::AuthDeny( HANDLE hdbe, const TCHAR* reason )
if ( !m_bLoggedIn )
return 1;
- DBEVENTINFO dbei;
- memset( &dbei, 0, sizeof( dbei ));
- dbei.cbSize = sizeof( dbei );
-
+ DBEVENTINFO dbei = { sizeof( dbei ) };
if (( dbei.cbBlob = CallService( MS_DB_EVENT_GETBLOBSIZE, ( WPARAM )hdbe, 0)) == -1 ) {
DebugLog("[YahooAuthDeny] ERROR: Can't get blob size");
return 1;
@@ -288,7 +285,7 @@ int CYahooProto::AuthDeny( HANDLE hdbe, const TCHAR* reason )
int __cdecl CYahooProto::AuthRecv(HANDLE hContact, PROTORECVEVENT* pre)
{
DebugLog("[YahooRecvAuth] ");
- DBDeleteContactSetting(hContact,"CList","Hidden");
+ db_unset(hContact,"CList","Hidden");
Proto_AuthRecv(m_szModuleName, pre);
return 0;
@@ -416,7 +413,7 @@ int __cdecl CYahooProto::RecvContacts( HANDLE /*hContact*/, PROTORECVEVENT* )
int __cdecl CYahooProto::RecvFile( HANDLE hContact, PROTORECVFILET* evt )
{
- DBDeleteContactSetting(hContact, "CList", "Hidden");
+ db_unset(hContact, "CList", "Hidden");
return Proto_RecvFile(hContact, evt);
}
@@ -849,7 +846,7 @@ INT_PTR CALLBACK first_run_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
DBFreeVariant( &dbv );
if (reconnectRequired ) {
- DBDeleteContactSetting(NULL, ppro->m_szModuleName, YAHOO_PWTOKEN);
+ db_unset(NULL, ppro->m_szModuleName, YAHOO_PWTOKEN);
}
CallService(MS_DB_CRYPT_ENCODESTRING, sizeof(str), (LPARAM) str);