@@ -1,3 +1,9 @@
+2008-03-25 Guillem Jover <guillem@debian.org>
+
+ * lib/dpkg-db.h (unlockdatabase): Change prototype to not take any
+ argument (as it was not being used). Fix all callers.
+ * lib/lock.c (unlockdatabase): Likewise.
2008-03-25 Ian Jackson <ian@davenant.greenend.org.uk>,
Guillem Jover <guillem@debian.org>
@@ -222,7 +222,7 @@ void modstatdb_shutdown(void) {
varbuffree(&uvb);
/* fall through */
case msdbrw_needsuperuserlockonly:
- unlockdatabase(admindir);
+ unlockdatabase();
default:
break;
}
@@ -151,7 +151,7 @@ struct pkginfo { /* pig */
/*** from lock.c ***/
void lockdatabase(const char *admindir);
-void unlockdatabase(const char *admindir);
+void unlockdatabase(void);
/*** from dbmodify.c ***/
@@ -77,7 +77,9 @@ lock_file(int *lockfd, const char *filename,
push_cleanup(cu_unlock_file, ~0, NULL, 0, 1, lockfd);
-void unlockdatabase(const char *admindir) {
+void
+unlockdatabase(void)
+{
unlock_file();
@@ -87,7 +87,7 @@ void updateavailable(const char *const *argv) {
if (!f_noact) {
writedb(vb.buf,1,0);
if (cipaction->arg != act_avclear)