]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
conf: prefer unsigned flags
authorEric Blake <eblake@redhat.com>
Thu, 7 Jul 2011 23:29:42 +0000 (17:29 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 13 Jul 2011 23:05:10 +0000 (17:05 -0600)
* src/conf/cpu_conf.h (virCPUDefFormat, virCPUDefFormatBuf):
Change flags type.
* src/conf/cpu_conf.c (virCPUDefFormat, virCPUDefFormatBuf):
Likewise.
* src/conf/storage_conf.c (_virStoragePoolOptions): Likewise.
* src/datatypes.h (_virConnect, _virStream): Likewise.

src/conf/cpu_conf.c
src/conf/cpu_conf.h
src/conf/storage_conf.c
src/datatypes.h

index 14e93db977ccc55e67f0fb53f6c03562cc5e44ed..5cecda2f2b09f924893d9b6f5f66f5792c16e6b7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * cpu_conf.h: CPU XML handling
  *
- * Copyright (C) 2009, 2010 Red Hat, Inc.
+ * Copyright (C) 2009-2011 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -307,7 +307,7 @@ error:
 char *
 virCPUDefFormat(virCPUDefPtr def,
                 const char *indent,
-                int flags)
+                unsigned int flags)
 {
     virBuffer buf = VIR_BUFFER_INITIALIZER;
 
@@ -331,7 +331,7 @@ int
 virCPUDefFormatBuf(virBufferPtr buf,
                    virCPUDefPtr def,
                    const char *indent,
-                   int flags)
+                   unsigned int flags)
 {
     unsigned int i;
 
index ecd4e10849392476f90390fba9f70df356541046..57b85e14f18445fea4193d387064363159dad59a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * cpu_conf.h: CPU XML handling
  *
- * Copyright (C) 2009, 2010 Red Hat, Inc.
+ * Copyright (C) 2009-2011 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -107,13 +107,13 @@ virCPUDefIsEqual(virCPUDefPtr src,
 char *
 virCPUDefFormat(virCPUDefPtr def,
                 const char *indent,
-                int flags);
+                unsigned int flags);
 
 int
 virCPUDefFormatBuf(virBufferPtr buf,
                    virCPUDefPtr def,
                    const char *indent,
-                   int flags);
+                   unsigned int flags);
 
 int
 virCPUDefAddFeature(virCPUDefPtr cpu,
index f6f8be1224e2e0ea9738cf55a018cd21f4069c9f..cc55b80d45f4423eeec7b8bea5d16e785f3828f2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * storage_conf.c: config handling for storage driver
  *
- * Copyright (C) 2006-2010 Red Hat, Inc.
+ * Copyright (C) 2006-2011 Red Hat, Inc.
  * Copyright (C) 2006-2008 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -117,7 +117,7 @@ enum {
 typedef struct _virStoragePoolOptions virStoragePoolOptions;
 typedef virStoragePoolOptions *virStoragePoolOptionsPtr;
 struct _virStoragePoolOptions {
-    int flags;
+    unsigned int flags;
     int defaultFormat;
     virStoragePoolFormatToString formatToString;
     virStoragePoolFormatFromString formatFromString;
index f114360b51183a57d9bfc359a0891e76777f512f..91b1bfd181033044e855dc3b5a09f7e96fde4006 100644 (file)
@@ -150,7 +150,7 @@ struct _virConnect {
      * since. Thus no need to lock when accessing them
      */
     unsigned int magic;     /* specific value to check */
-    int flags;              /* a set of connection flags */
+    unsigned int flags;     /* a set of connection flags */
     xmlURIPtr uri;          /* connection URI */
 
     /* The underlying hypervisor driver and network driver. */
@@ -297,7 +297,7 @@ struct _virStream {
     unsigned int magic;
     virConnectPtr conn;
     int refs;
-    int flags;
+    unsigned int flags;
 
     virStreamDriverPtr driver;
     void *privateData;