提交 e17d3e7f 编写于 作者: E Eric Blake

conf: prefer unsigned flags

* 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.
上级 07d5d073
/*
* 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;
......
/*
* 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,
......
/*
* 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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册