From 1bbc1e75248c98d6f58bcaac955bb5f7a8eed8f1 Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Wed, 10 Apr 2013 18:46:56 +0800 Subject: [PATCH] cleanup: Change datatype of hostdev->missing to boolean --- src/conf/domain_conf.h | 2 +- src/lxc/lxc_hostdev.c | 2 +- src/qemu/qemu_hostdev.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index e0b017e5fb..f70ebb55db 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -436,7 +436,7 @@ struct _virDomainHostdevDef { int mode; /* enum virDomainHostdevMode */ int startupPolicy; /* enum virDomainStartupPolicy */ bool managed; - unsigned int missing : 1; + bool missing; union { virDomainHostdevSubsys subsys; virDomainHostdevCaps caps; diff --git a/src/lxc/lxc_hostdev.c b/src/lxc/lxc_hostdev.c index 53a1a31f7f..0ce5d053ea 100644 --- a/src/lxc/lxc_hostdev.c +++ b/src/lxc/lxc_hostdev.c @@ -207,7 +207,7 @@ virLXCFindHostdevUSBDevice(virDomainHostdevDefPtr hostdev, out: if (!*usb) - hostdev->missing = 1; + hostdev->missing = true; return 0; } diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c index bac38b5672..0db9dddd05 100644 --- a/src/qemu/qemu_hostdev.c +++ b/src/qemu/qemu_hostdev.c @@ -739,7 +739,7 @@ qemuFindHostdevUSBDevice(virDomainHostdevDefPtr hostdev, out: if (!*usb) - hostdev->missing = 1; + hostdev->missing = true; return 0; } -- GitLab