diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-17 13:22:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-17 13:22:41 +0000 |
commit | 5b68af4bce0056e373e69bf16fb7d3bdfac96dd8 (patch) | |
tree | a4a179c1a0787f2b0650447ebe347c976d981330 /protocols/Twitter/proto.cpp | |
parent | 56a6310a76ca5d112e4bf86765da77055cd71ce3 (diff) |
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@457 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/proto.cpp')
-rw-r--r-- | protocols/Twitter/proto.cpp | 16 |
1 files changed, 8 insertions, 8 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
|