1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

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.
This commit is contained in:
Eric Blake 2011-07-07 17:29:42 -06:00
parent 07d5d07383
commit e17d3e7fe7
4 changed files with 10 additions and 10 deletions

View 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;

View 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,

View 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;

View 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;