summaryrefslogtreecommitdiff
path: root/plugins/Variables/parse_inet.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-30 16:17:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-30 16:17:46 +0000
commit7dad3543a2b848f6547b291f812c9643dc0b85f2 (patch)
tree1054ad62ecba19750bb4531f34e9d033ac1b7244 /plugins/Variables/parse_inet.cpp
parent008fe34954b0bda8fd3487a9658c14581ecd813a (diff)
Variables moved to mir_* memory allocation routines
git-svn-id: http://svn.miranda-ng.org/main/trunk@696 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/parse_inet.cpp')
-rw-r--r--plugins/Variables/parse_inet.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Variables/parse_inet.cpp b/plugins/Variables/parse_inet.cpp
index 41481e3b60..dce4fa76a4 100644
--- a/plugins/Variables/parse_inet.cpp
+++ b/plugins/Variables/parse_inet.cpp
@@ -2,7 +2,7 @@
Variables Plugin for Miranda-IM (www.miranda-im.org)
Copyright 2003-2006 P. Boon
- This program is free software; you can redistribute it and/or modify
+ This program is mir_free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
@@ -30,7 +30,7 @@ static TCHAR *parseUrlEnc(ARGUMENTSINFO *ai) {
return NULL;
}
- res = u2a(ai->targv[1]);
+ res = mir_t2a(ai->targv[1]);
if (res == NULL) {
return NULL;
@@ -51,9 +51,9 @@ static TCHAR *parseUrlEnc(ARGUMENTSINFO *ai) {
cur+=strlen(hex);
}
- tres = a2u(res);
+ tres = mir_a2t(res);
- free(res);
+ mir_free(res);
return tres;
}
@@ -68,7 +68,7 @@ static TCHAR *parseUrlDec(ARGUMENTSINFO *ai) {
return NULL;
}
- res = u2a(ai->targv[1]);
+ res = mir_t2a(ai->targv[1]);
if (res == NULL) {
return NULL;
@@ -85,9 +85,9 @@ static TCHAR *parseUrlDec(ARGUMENTSINFO *ai) {
}
res = ( char* )realloc(res, strlen(res)+1);
- tres = a2u(res);
+ tres = mir_a2t(res);
- free(res);
+ mir_free(res);
return tres;
}
@@ -105,7 +105,7 @@ static TCHAR *parseNToA(ARGUMENTSINFO *ai) {
res = inet_ntoa(in);
if (res != NULL) {
- return a2u(res);
+ return mir_a2t(res);
}
@@ -125,7 +125,7 @@ static TCHAR *parseHToA(ARGUMENTSINFO *ai) {
res = inet_ntoa(in);
if (res != NULL) {
- return a2u(res);
+ return mir_a2t(res);
}