diff options
author | ewt <devnull@localhost> | 1997-05-07 18:24:05 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1997-05-07 18:24:05 +0000 |
commit | 24fcb1113e503ac878ca11a2586c6c741ce40e21 (patch) | |
tree | a769431e2739127288b8b50e1ebc7ec4018bd865 /lib/depends.c | |
parent | b00166a733e0a31db68e0a2f60706b10cde60b3c (diff) | |
download | librpm-tizen-24fcb1113e503ac878ca11a2586c6c741ce40e21.tar.gz librpm-tizen-24fcb1113e503ac878ca11a2586c6c741ce40e21.tar.bz2 librpm-tizen-24fcb1113e503ac878ca11a2586c6c741ce40e21.zip |
Changed a bunch of bsearch() calls to work when sizeof(int) != sizeof(int *)
CVS patchset: 1612
CVS date: 1997/05/07 18:24:05
Diffstat (limited to 'lib/depends.c')
-rw-r--r-- | lib/depends.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/depends.c b/lib/depends.c index b8c8b97e9..27d48647a 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -435,8 +435,7 @@ static int unsatisfiedDepend(rpmDependencies rpmdep, char * reqName, if (bsearch(&matches.recs[i].recOffset, rpmdep->removedPackages, rpmdep->numRemovedPackages, - sizeof(int *), - intcmp)) + sizeof(int), intcmp)) continue; break; } @@ -451,8 +450,7 @@ static int unsatisfiedDepend(rpmDependencies rpmdep, char * reqName, if (bsearch(&matches.recs[i].recOffset, rpmdep->removedPackages, rpmdep->numRemovedPackages, - sizeof(int *), - intcmp)) + sizeof(int), intcmp)) continue; break; } @@ -466,8 +464,7 @@ static int unsatisfiedDepend(rpmDependencies rpmdep, char * reqName, if (bsearch(&matches.recs[i].recOffset, rpmdep->removedPackages, rpmdep->numRemovedPackages, - sizeof(int *), - intcmp)) + sizeof(int), intcmp)) continue; if (dbrecMatchesDepFlags(rpmdep, matches.recs[i].recOffset, @@ -496,7 +493,7 @@ static int checkPackageSet(rpmDependencies rpmdep, struct problemsSet * psp, for (i = 0; i < matches->count; i++) { if (bsearch(&matches->recs[i].recOffset, rpmdep->removedPackages, - rpmdep->numRemovedPackages, sizeof(int *), intcmp)) + rpmdep->numRemovedPackages, sizeof(int), intcmp)) continue; h = rpmdbGetRecord(rpmdep->db, matches->recs[i].recOffset); |