+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>
varbuffree(&uvb);
/* fall through */
case msdbrw_needsuperuserlockonly:
- unlockdatabase(admindir);
+ unlockdatabase();
default:
break;
}
/*** from lock.c ***/
void lockdatabase(const char *admindir);
-void unlockdatabase(const char *admindir);
+void unlockdatabase(void);
/*** from dbmodify.c ***/
push_cleanup(cu_unlock_file, ~0, NULL, 0, 1, lockfd);
}
-void unlockdatabase(const char *admindir) {
+void
+unlockdatabase(void)
+{
unlock_file();
}
if (!f_noact) {
writedb(vb.buf,1,0);
- unlockdatabase(admindir);
+ unlockdatabase();
}
if (cipaction->arg != act_avclear)