summaryrefslogtreecommitdiff
path: root/dpkg-split
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2008-01-07 11:26:40 +0200
committerGuillem Jover <guillem@debian.org>2008-01-07 11:26:55 +0200
commitdaf4cadfd9258c2eaede0255400e60f5622e627b (patch)
tree8caca441ed3f3c3462a6b6108e80ceabc1c16954 /dpkg-split
parent47cfe52122ea796356d3b3d9353c4605ae50bdf4 (diff)
downloaddpkg-daf4cadfd9258c2eaede0255400e60f5622e627b.tar.gz
Fix signed vs unsigned value comparisons
Those were making some code to never be executed. This fixes most of the bugs introduced with commit ea93ed48c17445d01b67f3fa8a20a5a644a89e5b.
Diffstat (limited to 'dpkg-split')
-rw-r--r--dpkg-split/queue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dpkg-split/queue.c b/dpkg-split/queue.c
index 6a1312fa1..342d19fdd 100644
--- a/dpkg-split/queue.c
+++ b/dpkg-split/queue.c
@@ -97,8 +97,8 @@ void do_auto(const char *const *argv) {
const char *partfile;
struct partinfo *pi, *refi, *npi, **partlist, *otherthispart;
struct partqueue *pq;
- unsigned int i, j;
- int ap;
+ unsigned int i;
+ int j, ap;
long nr;
FILE *part;
void *buffer;
@@ -163,7 +163,7 @@ void do_auto(const char *const *argv) {
/* There are still some parts missing. */
for (i=0, ap=0; i<refi->maxpartn; i++)
if (!partlist[i])
- printf("%s%d", !ap++ ? "" : i==j ? _(" and ") : ", ", i+1);
+ printf("%s%d", !ap++ ? "" : i == (unsigned int)j ? _(" and ") : ", ", i + 1);
printf(").\n");
} else {