The following commit has been merged in the master branch: commit c11588722ac0e195b1f31a4995a854536f331bde Author: Guillem Jover <guil...@debian.org> Date: Sat Mar 13 08:35:43 2010 +0100
libdpkg: Make statusfile and availablefile variables static diff --git a/lib/dpkg/dbmodify.c b/lib/dpkg/dbmodify.c index aafb1b0..02c1c35 100644 --- a/lib/dpkg/dbmodify.c +++ b/lib/dpkg/dbmodify.c @@ -45,9 +45,8 @@ #include <dpkg/dir.h> #include <dpkg/triglib.h> -char *statusfile=NULL, *availablefile=NULL; - static enum modstatdb_rw cstatus=-1, cflags=0; +static char *statusfile, *availablefile; static char *importanttmpfile=NULL; static FILE *importanttmp; static int nextupdate; diff --git a/lib/dpkg/dpkg-db.h b/lib/dpkg/dpkg-db.h index 810c5b9..9ad461c 100644 --- a/lib/dpkg/dpkg-db.h +++ b/lib/dpkg/dpkg-db.h @@ -208,9 +208,6 @@ void modstatdb_note_ifwrite(struct pkginfo *pkg); void modstatdb_checkpoint(void); void modstatdb_shutdown(void); -/* Initialised by modstatdb_init. */ -extern char *statusfile, *availablefile; - const char *pkgadmindir(void); const char *pkgadminfile(struct pkginfo *pkg, const char *whichfile); -- dpkg's main repository -- To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org