Mailinglist Archive: zypp-commit (171 mails)

< Previous Next >
[zypp-commit] <sat-solver> master : - fix typos
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Wed, 24 Jun 2009 17:14:51 +0200
  • Message-id: <E1MJUBf-00042A-2S@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 42686cfb3f4dd8206dc4657960c3a837edc2569d
Author: Michael Schroeder <mls@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages