summaryrefslogtreecommitdiff
path: root/test/scratch.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 17:03:13 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 17:03:13 +0000
commit5a8748f187da8fa666e28ee24360ca9842e35b3c (patch)
tree489cb5bd416487af9daae39059b482700fbc30be /test/scratch.cc
parent70dd8bf416532654626ac693a145fd275bb8092a (diff)
* Get self-tests compiling again, updated for latest li...
Author: mdz Date: 2003-08-18 15:32:37 GMT * Get self-tests compiling again, updated for latest library API and g++ 3.3
Diffstat (limited to 'test/scratch.cc')
-rw-r--r--test/scratch.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/scratch.cc b/test/scratch.cc
index b52608150..d638c7097 100644
--- a/test/scratch.cc
+++ b/test/scratch.cc
@@ -1,4 +1,3 @@
-#define APT_COMPATIBILITY 1
#include <apt-pkg/dpkgdb.h>
#include <apt-pkg/debfile.h>
#include <apt-pkg/error.h>
@@ -8,9 +7,12 @@
#include <apt-pkg/init.h>
#include <apt-pkg/fileutl.h>
+using namespace std;
+
int main(int argc,char *argv[])
{
- pkgInitialize(*_config);
+ pkgInitConfig(*_config);
+ pkgInitSystem(*_config,_system);
// cout << flNoLink(argv[1]) << endl;