summaryrefslogtreecommitdiff
path: root/dselect/pkgtop.cc
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-04-25 00:05:32 +0200
committerGuillem Jover <guillem@debian.org>2016-05-02 03:35:44 +0200
commit6dcc38a354432f9d4d4f24b6ccc8c4a29472e1e4 (patch)
tree0c7e47dbb07662461996af0f0f427b162cb682e9 /dselect/pkgtop.cc
parenta53b82ce38c2eca43e5fbbfbf82d9129fcdf7418 (diff)
downloaddpkg-6dcc38a354432f9d4d4f24b6ccc8c4a29472e1e4.tar.gz
dselect: Remove intermediate pkgbin info variable
Diffstat (limited to 'dselect/pkgtop.cc')
-rw-r--r--dselect/pkgtop.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/dselect/pkgtop.cc b/dselect/pkgtop.cc
index 39893f5c6..0da1f109d 100644
--- a/dselect/pkgtop.cc
+++ b/dselect/pkgtop.cc
@@ -140,7 +140,6 @@ void packagelist::redraw1itemsel(int index, int selected) {
int i, indent, j;
const char *p;
const struct pkginfo *pkg= table[index]->pkg;
- const struct pkgbin *info = &pkg->available;
int screenline = index - topofscreen;
wattrset(listpad, part_attr[selected ? listsel : list]);
@@ -238,8 +237,8 @@ void packagelist::redraw1itemsel(int index, int selected) {
}
i = col_description.width;
- p= info->description ? info->description :
- pkg->installed.description ? pkg->installed.description : "";
+ p = pkg->available.description ? pkg->available.description :
+ pkg->installed.description ? pkg->installed.description : "";
while (i>0 && *p && *p != '\n') { waddnstr(listpad,p,1); i--; p++; }
} else {
const char *section= pkg->section;