diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-11 15:39:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-11 15:39:23 +0000 |
commit | 2548065ebc5da2a8778cd4f49343b847773ee174 (patch) | |
tree | 642d6b05a1ada0df9803ddf55faa3e709920afef /plugins/YahooGroups | |
parent | eb031473db62a4fac910f7cb2d13765a753df92d (diff) |
'unreferenced formal parameter' warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YahooGroups')
-rw-r--r-- | plugins/YahooGroups/src/YahooGroups.cpp | 2 | ||||
-rw-r--r-- | plugins/YahooGroups/src/utils.cpp | 50 | ||||
-rw-r--r-- | plugins/YahooGroups/src/utils.h | 5 |
3 files changed, 2 insertions, 55 deletions
diff --git a/plugins/YahooGroups/src/YahooGroups.cpp b/plugins/YahooGroups/src/YahooGroups.cpp index cf2d09b11c..1af56490b7 100644 --- a/plugins/YahooGroups/src/YahooGroups.cpp +++ b/plugins/YahooGroups/src/YahooGroups.cpp @@ -51,8 +51,6 @@ extern "C" int __declspec(dllexport) Load() mir_getLP(&pluginInfo);
mir_getCLI();
- LogInit();
-
currentCodePage = Langpack_GetDefaultCodePage();
InitServices();
diff --git a/plugins/YahooGroups/src/utils.cpp b/plugins/YahooGroups/src/utils.cpp index a811bc5e64..60034353ce 100644 --- a/plugins/YahooGroups/src/utils.cpp +++ b/plugins/YahooGroups/src/utils.cpp @@ -20,51 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
-int LogInit()
-{
-#ifdef USE_LOG
- //FILE *fout = fopen(LOG_FILE, "wt");
- //fclose(fout);
- Log("********************** Miranda started **********************");
-#endif
- return 0;
-}
-
-int Log(char *format, ...)
-{
-#ifdef USE_LOG
- char str[4096];
- va_list vararg;
- int tBytes;
- FILE *fout = fopen(LOG_FILE, "at");
- if (!fout)
- {
-// MessageBox(0, "can't open file", NULL, MB_OK);
- return -1;
- }
- time_t tNow = time(NULL);
- struct tm *now = localtime(&tNow);
- strftime(str, sizeof(str), "%d %b %Y @ %H:%M:%S: ", now);
- fputs(str, fout);
- va_start(vararg, format);
-
- tBytes = mir_vsnprintf(str, sizeof(str), format, vararg);
- if (tBytes > 0)
- {
- str[tBytes] = 0;
- }
-
- va_end(vararg);
- if (str[mir_strlen(str) - 1] != '\n')
- {
- mir_strcat(str, "\n");
- }
- fputs(str, fout);
- fclose(fout);
-#endif
- return 0;
-}
-
int Info(char *title, char *format, ...)
{
char str[4096];
@@ -73,9 +28,8 @@ int Info(char *title, char *format, ...) va_start(vararg, format);
tBytes = mir_vsnprintf(str, sizeof(str), format, vararg);
if (tBytes > 0)
- {
- str[tBytes] = 0;
- }
+ str[tBytes] = 0;
+
va_end(vararg);
return MessageBoxA(0, str, title, MB_OK | MB_ICONINFORMATION);
}
diff --git a/plugins/YahooGroups/src/utils.h b/plugins/YahooGroups/src/utils.h index 3239217211..8269e2c61c 100644 --- a/plugins/YahooGroups/src/utils.h +++ b/plugins/YahooGroups/src/utils.h @@ -24,17 +24,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
-//#define USE_LOG
-#define LOG_FILE "yahoogroups.log"
-
#define ANCHOR_LEFT 0x000001
#define ANCHOR_RIGHT 0x000002
#define ANCHOR_TOP 0x000004
#define ANCHOR_BOTTOM 0x000008
#define ANCHOR_ALL ANCHOR_LEFT | ANCHOR_RIGHT | ANCHOR_TOP | ANCHOR_BOTTOM
-int LogInit();
-int Log(char *format, ...);
int Info(char *title, char *format, ...);
char *BinToHex(int size, PBYTE data);
|