summaryrefslogtreecommitdiffstats
path: root/kmtrace/ktrace.c
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kmtrace/ktrace.c
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmtrace/ktrace.c')
-rw-r--r--kmtrace/ktrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kmtrace/ktrace.c b/kmtrace/ktrace.c
index 21fca376..cf3c55c0 100644
--- a/kmtrace/ktrace.c
+++ b/kmtrace/ktrace.c
@@ -495,14 +495,14 @@ addAllocationToTree(void)
int i, j;
void *bt[TR_BT_SIZE + 1];
CallerNode* cn = CallTree;
- CallerNode** parent = &CallTree;
+ CallerNode** tqparent = &CallTree;
bt_size = backtrace(bt, TR_BT_SIZE);
for (i = bt_size - 1; i >= 4; i--)
{
if (cn == NULL)
{
- *parent = cn = (CallerNode*) malloc(sizeof(CallerNode));
+ *tqparent = cn = (CallerNode*) malloc(sizeof(CallerNode));
cn->funcAdr = bt[i];
cn->mallocs = 0;
cn->noCallees = 0;
@@ -517,7 +517,7 @@ addAllocationToTree(void)
for (j = 0; j < cn->noCallees; j++)
if (bt[i - 1] == cn->callees[j]->funcAdr)
{
- parent = &cn->callees[j];
+ tqparent = &cn->callees[j];
cn = cn->callees[j];
knownCallee = 1;
break;
@@ -541,7 +541,7 @@ addAllocationToTree(void)
(newSize - cn->maxCallees) * sizeof(CallerNode*));
cn->maxCallees = newSize;
}
- parent = &cn->callees[cn->noCallees++];
+ tqparent = &cn->callees[cn->noCallees++];
cn = 0;
}
}