This struct is being used privately by the deconfiguring code, so we can give a proper type and name to the member.
@@ -1,3 +1,8 @@
+2008-07-22 Guillem Jover <guillem@debian.org>
+
+ * src/main.h (struct packageinlist): Change 'void *xinfo' member to
+ 'struct pkginfo *pkg_removal'. Fix all users.
2008-07-22 Guillem Jover <guillem@debian.org>
* src/main.h (ignoredependss): Change type to 'struct pkginqueue'.
@@ -894,7 +894,7 @@ static int try_deconfigure_can(int (*force_p)(struct deppossi*),
newdeconf = m_malloc(sizeof(struct packageinlist));
newdeconf->next= deconfigure;
newdeconf->pkg= pkg;
- newdeconf->xinfo= removal;
+ newdeconf->pkg_removal = removal;
deconfigure= newdeconf;
return 1;
} else {
@@ -49,7 +49,7 @@ struct perpackagestate {
struct packageinlist {
struct packageinlist *next;
struct pkginfo *pkg;
- void *xinfo;
+ struct pkginfo *pkg_removal;
};
struct pkginqueue {
@@ -412,7 +412,7 @@ void process_archive(const char *filename) {
}
for (deconpil= deconfigure; deconpil; deconpil= deconpil->next) {
- struct pkginfo *removing= deconpil->xinfo;
+ struct pkginfo *removing = deconpil->pkg_removal;
if (removing)
printf(_("De-configuring %s, to allow removal of %s ...\n"),