mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
tests: command: Fix build on ppc64/aarch64
Commit ca10bb040fcf introduced a new test that fails to build on at least some architectures: commandtest.c: In function 'test25': commandtest.c:1121:5: error: comparison is always true due to limited range of data type [-Werror=type-limits] if (rv >= 0) { ^ Change the type of 'rv' from char to int, which is the proper return type for virCommandExec() anyway.
This commit is contained in:
parent
55d8daa07e
commit
5bcbf72415
@ -1068,7 +1068,7 @@ static int test25(const void *unused ATTRIBUTE_UNUSED)
|
||||
{
|
||||
int ret = -1;
|
||||
int pipeFD[2] = { -1, -1};
|
||||
char rv = 0;
|
||||
int rv = 0;
|
||||
ssize_t tries = 100;
|
||||
pid_t pid;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user