}
}
- 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 */
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;
}