mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
msg_buf_size is unsigned long not size_t
This fixes the build on 32bit systems which otherwise fails with: virnetmessagetest.c: In function 'testMessageHeaderEncode': virnetmessagetest.c:75:9: error: format '%zu' expects argument of type 'size_t', but argument 7 has type 'long unsigned int' [-Werror=format]
This commit is contained in:
parent
3ac8fb54f4
commit
2d98c68662
@ -72,7 +72,7 @@ static int testMessageHeaderEncode(const void *args ATTRIBUTE_UNUSED)
|
||||
}
|
||||
|
||||
if (msg->bufferLength != msg_buf_size) {
|
||||
VIR_DEBUG("Expect message offset %zu got %zu",
|
||||
VIR_DEBUG("Expect message offset %lu got %zu",
|
||||
msg_buf_size, msg->bufferLength);
|
||||
goto cleanup;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user