summary refs log tree commit diff stats
path: root/migration-unix.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2010-03-10 11:38:38 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-17 11:14:52 -0500
commit9aea10297f34c33ee2225426c12be474a797a13b (patch)
tree13fb7558bf4b1d732f01640312f7ff30068dc01a /migration-unix.c
parent6d0ee85040e4d238e2483191fe6e74aebbecd5d5 (diff)
downloadfocaccia-qemu-9aea10297f34c33ee2225426c12be474a797a13b.tar.gz
focaccia-qemu-9aea10297f34c33ee2225426c12be474a797a13b.zip
avoid dubiously clever code in win32_start_timer
The code is initializing an unsigned int to UINT_MAX using "-1", so that
the following always-true comparison seems to be always-false at a
first look.  Since alarm timer initializations are never nested, it is
simpler to unconditionally store the result of timeGetDevCaps into
data->period.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration-unix.c')
0 files changed, 0 insertions, 0 deletions