From: Daiki Ueno Date: Tue, 20 Sep 2016 13:01:04 +0000 (+0200) Subject: test: Fix p11_virtual_init() usage X-Git-Tag: 0.23.3~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fe688e8bd360ce2f364bfb6ef80e07712c9bb86;p=p11-kit test: Fix p11_virtual_init() usage p11_virtual_init() should take a CK_FUNCTION_LIST as the 3rd argument, if the 2nd argument is &p11_virtual_base. https://bugs.freedesktop.org/show_bug.cgi?id=87192 --- diff --git a/p11-kit/test-virtual.c b/p11-kit/test-virtual.c index 73777d3..e642820 100644 --- a/p11-kit/test-virtual.c +++ b/p11-kit/test-virtual.c @@ -138,7 +138,7 @@ test_get_function_list (void) p11_virtual virt; CK_RV rv; - p11_virtual_init (&virt, &p11_virtual_base, &mock_x_module_no_slots, NULL); + p11_virtual_init (&virt, &p11_virtual_base, &mock_module_no_slots, NULL); module = p11_virtual_wrap (&virt, NULL); assert_ptr_not_null (module);