tests: fix build of opkg_extract_test
authorJo-Philipp Wich <jo@mein.io>
Fri, 17 Feb 2017 14:08:44 +0000 (15:08 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 17 Feb 2017 14:08:44 +0000 (15:08 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
tests/opkg_extract_test.c

index 01d2af9b219f00ade44cace68317dd73151dbcfc..ba041a8cb0c29bea665f8676e7f4d726342b74c8 100644 (file)
@@ -24,6 +24,7 @@ int main(int argc, char *argv[])
            extract_control_tar_gz | extract_all_to_fs | extract_preserve_date;
        char *returned;
        char *filename;
+       int err;
 
        if (argc < 2) {
                fprintf(stderr, "syntax: %s <opkg file> [<file_to_extract>]\n",
@@ -37,7 +38,7 @@ int main(int argc, char *argv[])
                filename = argv[2];
        }
 
-       returned = deb_extract(argv[1], stdout, dowhat, NULL, filename);
+       returned = deb_extract(argv[1], stdout, dowhat, NULL, filename, &err);
 
        if (returned)
                fprintf(stderr, "returned %s\n", returned);