]> xenbits.xensource.com Git - libvirt.git/commit
Fix leftover typo '&' -> '&&'
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 9 Oct 2014 08:00:05 +0000 (10:00 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Sun, 12 Oct 2014 11:41:47 +0000 (13:41 +0200)
commit4d2a8a0a0c7876f4c1445573cbe28aa1049cfce7
treea4145d725cf24428477cdb6f881656ee9df954d5
parent1298daca29612313f2b48df66cc6db007b0ae20e
Fix leftover typo '&' -> '&&'

The actual origin of this so called typo are two commits.  The first one
was commit 72f8a7f that came up with the following condition:

if ((i == 8) & (flags & VIR_QEMU_PROCESS_KILL_FORCE))

Fortunately this succeeded thanks to bool being (int)1 and
VIR_QEMU_PROCESS_KILL_FORCE having the value of 1 << 0.  The check was
then moved and altered in 8fd38231179c394f07d8a26bcbf3a0faa5eeaf24 to
current state:

if ((i == 50) & force)

that will work again (both sides of '&' being booleans), but since this
was missed so many times, it may pose a problem in the future in case it
gets copy-pasted again.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virprocess.c