]> xenbits.xensource.com Git - libvirt.git/commit
tests: command: Fix build on ppc64/aarch64
authorAndrea Bolognani <abologna@redhat.com>
Wed, 13 Jul 2016 16:53:22 +0000 (18:53 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 14 Jul 2016 07:41:55 +0000 (09:41 +0200)
commit5bcbf724151e2c37208bad1e47a92d60784291b6
treeebde3ebcff27a9b835dcaa36d2c17c3f6d450960
parent55d8daa07e7419a929efd677923a428e3d76345b
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.
tests/commandtest.c