[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 1/4] cleanup: Change datatype of accel's members to boolean



---
 src/conf/domain_conf.c | 8 ++++----
 src/conf/domain_conf.h | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 68f024f..62f448d 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -8150,17 +8150,17 @@ virDomainVideoAccelDefParseXML(const xmlNodePtr node) {
 
     if (support3d) {
         if (STREQ(support3d, "yes"))
-            def->support3d = 1;
+            def->support3d = true;
         else
-            def->support3d = 0;
+            def->support3d = false;
         VIR_FREE(support3d);
     }
 
     if (support2d) {
         if (STREQ(support2d, "yes"))
-            def->support2d = 1;
+            def->support2d = true;
         else
-            def->support2d = 0;
+            def->support2d = false;
         VIR_FREE(support2d);
     }
 
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 3ab0f15..cae6547 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -1188,8 +1188,8 @@ enum virDomainVideoType {
 typedef struct _virDomainVideoAccelDef virDomainVideoAccelDef;
 typedef virDomainVideoAccelDef *virDomainVideoAccelDefPtr;
 struct _virDomainVideoAccelDef {
-    unsigned int support3d :1;
-    unsigned int support2d :1;
+    bool support3d;
+    bool support2d;
 };
 
 
-- 
1.8.1.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]