From 046607add6637d7019803ba85e102c148931417b Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Fri, 30 Apr 2021 15:03:39 +0200 Subject: [PATCH] device: Add void return type tag to fp_device_delete_print_sync This way it matches the other _sync functions that return a boolean just to show that an error was set. --- libfprint/fp-device.c | 2 +- tests/virtual-device.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c index c65e577..509e052 100644 --- a/libfprint/fp-device.c +++ b/libfprint/fp-device.c @@ -1716,7 +1716,7 @@ fp_device_capture_sync (FpDevice *device, * * Delete a given print from the device. * - * Returns: %FALSE on error, %TRUE otherwise + * Returns: (type void): %FALSE on error, %TRUE otherwise */ gboolean fp_device_delete_print_sync (FpDevice *device, diff --git a/tests/virtual-device.py b/tests/virtual-device.py index 2089f2a..7c024c9 100644 --- a/tests/virtual-device.py +++ b/tests/virtual-device.py @@ -1007,7 +1007,7 @@ class VirtualDeviceStorage(VirtualDevice): def cleanup_device_storage(self): if self.dev.is_open() and not self.dev.props.removed: for print in self.dev.list_prints_sync(): - self.assertTrue(self.dev.delete_print_sync(print, None)) + self.dev.delete_print_sync(print, None) def test_device_properties(self): self.assertEqual(self.dev.get_driver(), 'virtual_device_storage')