Skip to content

Commit 078e3ec

Browse files
committed
umockdev-record: Fix all_devices() type conversion
Avoid directly accessing `.data()`, use the `.steal()` API instead which does proper type coercion. ``` umockdev-record.c:418:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘void **’ ../../source/src/umockdev-record.vala:64:72: error: pointer type mismatch in conditional expression [-Werror] ```
1 parent ea82705 commit 078e3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/umockdev-record.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ all_devices ()
6161
{
6262
var devs = new GenericArray<string>();
6363
devices_from_dir("/sys/devices", ref devs);
64-
return devs.data;
64+
return devs.steal();
6565
}
6666

6767
// If dev is a block or character device, convert it to a sysfs path.

0 commit comments

Comments
 (0)