The following commit has been merged in the master branch:
commit 5daeb588b63b82e555348cb96c31ef16b9d0620d
Author: Ian Jackson <[EMAIL PROTECTED]>
Date:   Thu Mar 20 05:17:01 2008 +0200

    Rename checkpoint function to modstatdb_checkpoint and make it global

diff --git a/ChangeLog b/ChangeLog
index 6e42dbc..b977679 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-03-20  Ian Jackson  <[EMAIL PROTECTED]>
 
+       * 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  <[EMAIL PROTECTED]>
+
        * lib/tarfn.c (TarExtractor): Initialize h.LinkName and h.Name to
        NULL.
 
diff --git a/lib/dbmodify.c b/lib/dbmodify.c
index d13cc10..cfc95ca 100644
--- a/lib/dbmodify.c
+++ b/lib/dbmodify.c
@@ -195,7 +195,7 @@ enum modstatdb_rw modstatdb_init(const char *adir, enum 
modstatdb_rw readwritere
   return cstatus;
 }
 
-static void checkpoint(void) {
+void modstatdb_checkpoint(void) {
   int i;
 
   assert(cstatus >= msdbrw_write);
@@ -214,7 +214,7 @@ void modstatdb_shutdown(void) {
   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);
@@ -279,7 +279,7 @@ void modstatdb_note(struct pkginfo *pkg) {
   nextupdate++;  
 
   if (nextupdate > MAXUPDATES) {
-    checkpoint();
+    modstatdb_checkpoint();
     nextupdate= 0;
   }
 
diff --git a/lib/dpkg-db.h b/lib/dpkg-db.h
index af7ed0b..9f8de44 100644
--- a/lib/dpkg-db.h
+++ b/lib/dpkg-db.h
@@ -170,6 +170,7 @@ extern struct pipef *status_pipes;
 
 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 */

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to