summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--dselect/pkglist.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index acf9a0416..3ae59b230 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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() {