virsh, daemon: prefer unsigned flags

* tools/virsh.c (vshCmdDef): Change flags type.
* daemon/remote.c (remoteDispatchOpen): Likewise.
This commit is contained in:
Eric Blake 2011-07-07 11:53:04 -06:00
parent 4ba3faac2c
commit 0983905c5a
2 changed files with 2 additions and 2 deletions

View File

@ -443,7 +443,7 @@ remoteDispatchOpen(virNetServerPtr server ATTRIBUTE_UNUSED,
struct remote_open_args *args)
{
const char *name;
int flags;
unsigned int flags;
struct daemonClientPrivate *priv = virNetServerClientGetPrivateData(client);
int rv = -1;

View File

@ -201,7 +201,7 @@ typedef struct {
bool (*handler) (vshControl *, const vshCmd *); /* command handler */
const vshCmdOptDef *opts; /* definition of command options */
const vshCmdInfo *info; /* details about command */
int flags; /* bitwise OR of VSH_CMD_FLAG */
unsigned int flags; /* bitwise OR of VSH_CMD_FLAG */
} vshCmdDef;
/*