From: Michael Tremer Date: Mon, 9 May 2022 20:09:06 +0000 (+0000) Subject: tests: Fix build after callback changes X-Git-Tag: 0.9.28~807 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e958e6cbb9633042e181ed5c6850eacf84613bc;p=pakfire.git tests: Fix build after callback changes Signed-off-by: Michael Tremer --- diff --git a/tests/testsuite.c b/tests/testsuite.c index 708d215f3..82bfb8beb 100644 --- a/tests/testsuite.c +++ b/tests/testsuite.c @@ -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);