Skip to content

Commit 95a44d3

Browse files
committed
GPU (Haiku): silence warnings
1 parent b8b2fab commit 95a44d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/gpu/gpu_haiku.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
1414
.info = &dev,
1515
};
1616

17-
for (cmd.index = 0; ioctl(pokefd, POKE_GET_NTH_PCI_INFO, &cmd) == B_OK && cmd.status == B_OK; ++cmd.index)
17+
for (cmd.index = 0; ioctl(pokefd, POKE_GET_NTH_PCI_INFO, &cmd, sizeof(cmd)) == B_OK && cmd.status == B_OK; ++cmd.index)
1818
{
1919
if (dev.class_base != 0x03 /*PCI_BASE_CLASS_DISPLAY*/)
2020
continue;

0 commit comments

Comments
 (0)