]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Fix build after callback changes
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 May 2022 20:09:06 +0000 (20:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 May 2022 20:09:06 +0000 (20:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/testsuite.c

index 708d215f342d6597f07071fb6ef420d02c181246..82bfb8beb9ccb064664e7416cdd252b705801ccc 100644 (file)
@@ -36,10 +36,6 @@ static int test_run(int i, struct test* t) {
        char root[PATH_MAX];
        int r;
 
-       struct pakfire_callbacks callbacks = {
-               .log = pakfire_log_stderr,
-       };
-
        // Create test root directory
        snprintf(root, PATH_MAX - 1, "%s/pakfire-test-XXXXXX", TEST_ROOTFS);
        char* tmp = pakfire_mkdtemp(root);
@@ -52,7 +48,7 @@ static int test_run(int i, struct test* t) {
 
        // Create a pakfire instance
        r = pakfire_create(&t->pakfire, root, NULL, TEST_SRC_PATH "/pakfire.conf",
-               0, &callbacks);
+               0, pakfire_log_stderr, NULL);
        if (r) {
                LOG("ERROR: Could not initialize pakfire: %m\n");
                exit(1);