diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dselect/pkglist.cc | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Apr 24 01:40:11 CEST 2001 Wichert Akkerman <wakkerma@debian.org> + + * dselect/pkglist.cc: repair qsort_compareentries + Mon Apr 23 18:08:37 CDT 2001 Adam Heath <doogie@debian.org> * lib/parsehelp.c: Reduce memory a tad. diff --git a/dselect/pkglist.cc b/dselect/pkglist.cc index 8ef3d4b18..c4d44c738 100644 --- a/dselect/pkglist.cc +++ b/dselect/pkglist.cc @@ -140,8 +140,8 @@ void packagelist::addheading(enum ssavailval ssavail, static packagelist *sortpackagelist; int qsort_compareentries(const void *a, const void *b) { - return sortpackagelist->compareentries((const struct perpackagestate*)&a, - (const struct perpackagestate*)&b); + return sortpackagelist->compareentries(*(const struct perpackagestate**)a, + *(const struct perpackagestate**)b); } void packagelist::sortinplace() { |