]> git.saurik.com Git - apt.git/blobdiff - test/libapt/sourcelist_test.cc
warning: no previous declaration for foobar() [-Wmissing-declarations]
[apt.git] / test / libapt / sourcelist_test.cc
index 6fc84fd930988ff02108da21df865720498aa480..e79b6d65e1659ceb240a5955bd52a39f172005fd 100644 (file)
@@ -9,7 +9,7 @@
 char *tempfile = NULL;
 int tempfile_fd = -1;
 
-void remove_tmpfile(void)
+static void remove_tmpfile(void)
 {
    if (tempfile_fd > 0)
       close(tempfile_fd);
@@ -21,6 +21,8 @@ void remove_tmpfile(void)
 
 int main(int argc, char *argv[])
 {
+  _config->Set("APT::Sources::Use-Deb822", true);
+
    const char contents[] = ""
       "Types: deb\n"
       "URIs: http://ftp.debian.org/debian\n"