From 5b68af4bce0056e373e69bf16fb7d3bdfac96dd8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 17 Jun 2012 13:22:41 +0000 Subject: warning fix git-svn-id: http://svn.miranda-ng.org/main/trunk@457 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/proto.cpp | 16 ++++++++-------- protocols/Twitter/proto.h | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'protocols') diff --git a/protocols/Twitter/proto.cpp b/protocols/Twitter/proto.cpp index 6f23a185a4..c2108358ae 100644 --- a/protocols/Twitter/proto.cpp +++ b/protocols/Twitter/proto.cpp @@ -510,26 +510,26 @@ void TwitterProto::ShowPopup(const char *text, int Error) MessageBox(0,popup.lptzText,popup.lptzContactName,0); } -int TwitterProto::LOG(TCHAR *fmt,...) +void TwitterProto::LOG(TCHAR *fmt,...) { - va_list va; - TCHAR text[1024]; if (!hNetlib_) - return 0; + return; + va_list va; va_start(va,fmt); + + TCHAR text[1024]; mir_vsntprintf(text,SIZEOF(text),fmt,va); va_end(va); - return CallService(MS_NETLIB_LOG, (WPARAM)hNetlib_, (LPARAM)( char* )_T2A(text)); + CallService(MS_NETLIB_LOG, (WPARAM)hNetlib_, (LPARAM)( char* )_T2A(text)); } -int TwitterProto::WLOG(TCHAR* first, const wstring last) +void TwitterProto::WLOG(TCHAR* first, const wstring last) { TCHAR *str1 = new TCHAR[1024*96]; _stprintf(str1,_T("%s"), last.c_str()); - - return LOG(first, str1); + LOG(first, str1); } // TODO: the more I think about it, the more I think all twit.* methods should diff --git a/protocols/Twitter/proto.h b/protocols/Twitter/proto.h index 8e25031470..ca3fd8596c 100644 --- a/protocols/Twitter/proto.h +++ b/protocols/Twitter/proto.h @@ -146,8 +146,8 @@ private: HANDLE AddToClientList(const char *,const char *); void SetAllContactStatuses(int); - int LOG(TCHAR *fmt,...); - int WLOG(TCHAR* first, const wstring last); + void LOG(TCHAR *fmt,...); + void WLOG(TCHAR* first, const wstring last); static void CALLBACK APC_callback(ULONG_PTR p); void UpdateChat(const twitter_user &update); -- cgit v1.2.3