summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-17 13:22:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-17 13:22:41 +0000
commit5b68af4bce0056e373e69bf16fb7d3bdfac96dd8 (patch)
treea4a179c1a0787f2b0650447ebe347c976d981330 /protocols
parent56a6310a76ca5d112e4bf86765da77055cd71ce3 (diff)
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@457 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Twitter/proto.cpp16
-rw-r--r--protocols/Twitter/proto.h4
2 files changed, 10 insertions, 10 deletions
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);