diff options
author | Guillem Jover <guillem@debian.org> | 2008-06-30 06:14:25 +0300 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2008-06-30 07:08:34 +0300 |
commit | dca65d1a2389ed2cafca37828fe78de46758d37c (patch) | |
tree | fb3ee2b21c61563e8dfae5787462747dfb4fc2c7 /dselect/pkgdepcon.cc | |
parent | 4e146921a6a304e8478321d27527a4af1db2cfc3 (diff) | |
download | dpkg-dca65d1a2389ed2cafca37828fe78de46758d37c.tar.gz |
dselect: Fix compilation warnings
Surround boolean expressions with parenthesis.
Switch a for with an empty body into a while.
Diffstat (limited to 'dselect/pkgdepcon.cc')
-rw-r--r-- | dselect/pkgdepcon.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dselect/pkgdepcon.cc b/dselect/pkgdepcon.cc index eea4f836c..0f3140fcd 100644 --- a/dselect/pkgdepcon.cc +++ b/dselect/pkgdepcon.cc @@ -235,9 +235,9 @@ int packagelist::resolvedepcon(dependency *depends) { fixbyupgrade= 0; - for (possi= depends->list; - possi && !deppossatisfied(possi,&fixbyupgrade); - possi= possi->next); + possi = depends->list; + while (possi && !deppossatisfied(possi, &fixbyupgrade)) + possi = possi->next; if (depdebug && debug) fprintf(debug,"packagelist[%p]::resolvedepcon([%p]): depends found %s\n", this,depends, |