+2008-03-20 Ian Jackson <ian@davenant.greenend.org.uk>
+
+ * lib/dpkg-db.h (modstatdb_checkpoint): New prototype.
+ * lib/dbmodify.c (checkpoint): Remove static keyword. Rename to ...
+ (modstatdb_checkpoint): ... this. Fix all callers.
+
2008-03-20 Ian Jackson <ian@davenant.greenend.org.uk>
* lib/tarfn.c (TarExtractor): Initialize h.LinkName and h.Name to
return cstatus;
}
-static void checkpoint(void) {
+void modstatdb_checkpoint(void) {
int i;
assert(cstatus >= msdbrw_write);
const struct fni *fnip;
switch (cstatus) {
case msdbrw_write:
- checkpoint();
+ modstatdb_checkpoint();
writedb(availablefile,1,0);
/* tidy up a bit, but don't worry too much about failure */
fclose(importanttmp);
nextupdate++;
if (nextupdate > MAXUPDATES) {
- checkpoint();
+ modstatdb_checkpoint();
nextupdate= 0;
}
enum modstatdb_rw modstatdb_init(const char *admindir, enum modstatdb_rw reqrwflags);
void modstatdb_note(struct pkginfo *pkg);
+void modstatdb_checkpoint(void);
void modstatdb_shutdown(void);
extern char *statusfile, *availablefile; /* initialised by modstatdb_init */