From f440b596fc8670be8ea3fb1ec31322a3e4e4b9c7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 15 Aug 2013 20:00:45 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@5708 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/parse_alias.cpp | 15 +++++++-------- plugins/Variables/src/parse_metacontacts.cpp | 6 +++--- plugins/Variables/src/parse_miranda.cpp | 2 +- plugins/Variables/src/parse_system.cpp | 2 +- 4 files changed, 12 insertions(+), 13 deletions(-) (limited to 'plugins/Variables') diff --git a/plugins/Variables/src/parse_alias.cpp b/plugins/Variables/src/parse_alias.cpp index 3cbae2373e..87a95567ff 100644 --- a/plugins/Variables/src/parse_alias.cpp +++ b/plugins/Variables/src/parse_alias.cpp @@ -159,17 +159,17 @@ static TCHAR *parseAddAlias(ARGUMENTSINFO *ai) { int res; int argc, i; - TCHAR *cur, *alias, **argv, *szArgs; + TCHAR **argv; char *szHelp, *szArgsA; if (ai->argc != 3) return NULL; - cur = ai->targv[1]; + TCHAR *cur = ai->targv[1]; while (isValidTokenChar(*cur)) cur++; - alias = (TCHAR*)mir_calloc(((cur-ai->targv[1])+1)*sizeof(TCHAR)); + TCHAR *alias = (TCHAR*)mir_calloc(((cur-ai->targv[1])+1)*sizeof(TCHAR)); if (alias == NULL) return NULL; @@ -177,8 +177,8 @@ static TCHAR *parseAddAlias(ARGUMENTSINFO *ai) { getArguments(cur, &argv, &argc); deRegisterToken(alias); addToAliasRegister(alias, argc, argv, ai->targv[2]); - szArgs = NULL; - for (i=0;itargv[1]) == 0) szCounter = mir_tstrdup(_T("\\Processor(_Total)\\% Processor Time")); else { - int size = _tcslen(ai->targv[1]) + 32; + int size = (int)_tcslen(ai->targv[1]) + 32; szCounter = (TCHAR *)mir_alloc(size * sizeof(TCHAR)); if (szCounter == NULL) return NULL; -- cgit v1.2.3