From 9430e6139ce3d17565d6bb7b4bce2e1fc0a1b326 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jul 1996 01:36:29 +0000 Subject: [PATCH] fixed qsort() and bsearch() sizes for the provides table CVS patchset: 793 CVS date: 1996/07/12 01:36:29 --- lib/depends.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/depends.c b/lib/depends.c index d610a4f..5d5f1c4 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -203,8 +203,8 @@ int rpmdepCheck(rpmDependencies rpmdep, } } - qsort(rpmdep->providesTable, rpmdep->numProvides, sizeof(char *), - (void *) providescmp); + qsort(rpmdep->providesTable, rpmdep->numProvides, + sizeof(*rpmdep->providesTable), (void *) providescmp); /* look at all of the added packages and make sure their dependencies are satisfied */ @@ -266,7 +266,7 @@ static int unsatisfiedDepend(rpmDependencies rpmdep, char * reqName, prent.entry = reqName; if ((provider = bsearch(&prent, rpmdep->providesTable, rpmdep->numProvides, - sizeof(char *), (void *) providescmp))) { + sizeof(*rpmdep->providesTable), (void *) providescmp))) { if (headerMatchesDepFlags(provider->package->h, reqVersion, reqFlags)) return 0; } -- 2.7.4