summaryrefslogtreecommitdiff
path: root/src/solverdebug.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2008-09-17 10:30:59 +0000
committerMichael Schroeder <mls@suse.de>2008-09-17 10:30:59 +0000
commitb3821d1bc8464c377aaff644a0e00b3f09e463aa (patch)
tree9e847d928b4aa9d848338740903ee1389872afd0 /src/solverdebug.c
parenteeb5fad132b310b50d04f408d84c9474c30bd287 (diff)
downloadlibsolv-b3821d1bc8464c377aaff644a0e00b3f09e463aa.tar.gz
libsolv-b3821d1bc8464c377aaff644a0e00b3f09e463aa.tar.bz2
libsolv-b3821d1bc8464c377aaff644a0e00b3f09e463aa.zip
- Change provide iterator from ID pointer to ID. Before, iterating
was unsave as the whatprovides array can get relocated.
Diffstat (limited to 'src/solverdebug.c')
-rw-r--r--src/solverdebug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/solverdebug.c b/src/solverdebug.c
index 2e314cf..42d48ba 100644
--- a/src/solverdebug.c
+++ b/src/solverdebug.c
@@ -51,7 +51,7 @@ solver_create_decisions_obsoletesmap(Solver *solv)
{
for (i = 0; i < solv->decisionq.count; i++)
{
- Id *pp, n;
+ Id pp, n;
int noobs;
n = solv->decisionq.elements[i];
@@ -80,7 +80,7 @@ solver_create_decisions_obsoletesmap(Solver *solv)
for (i = 0; i < solv->decisionq.count; i++)
{
Id obs, *obsp;
- Id *pp, n;
+ Id pp, n;
n = solv->decisionq.elements[i];
if (n < 0)
@@ -301,7 +301,7 @@ solver_printdecisions(Solver *solv)
}
else
{
- Id xp, *xpp;
+ Id xp, xpp;
FOR_PROVIDES(xp, xpp, s->name)
{
Solvable *s2 = pool->solvables + xp;