ref: refs/heads/master
commit 42686cfb3f4dd8206dc4657960c3a837edc2569d
Author: Michael Schroeder
Date: Wed Jun 24 17:14:51 2009 +0200
- fix typos
---
examples/solv.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/solv.c b/examples/solv.c
index 35a8637..ed5622b 100644
--- a/examples/solv.c
+++ b/examples/solv.c
@@ -654,7 +654,7 @@ rerunsolver:
solver_printprobleminfo(solv, problem);
printf("\n");
scnt = solver_solution_count(solv, problem);
- for (solution = 1; solution <= pcnt; solution++)
+ for (solution = 1; solution <= scnt; solution++)
{
printf("Solution %d:\n", solution);
solver_printsolution(solv, problem, solution);
@@ -675,7 +675,7 @@ rerunsolver:
if (*ip >= '0' && *ip <= '9')
{
take = atoi(ip);
- if (take >= 1 && take <= solution)
+ if (take >= 1 && take <= scnt)
break;
}
if (*ip == 's')
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org