diff --git a/daemon/remote.c b/daemon/remote.c index 0172626e18..e93a0dcba0 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -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; diff --git a/tools/virsh.c b/tools/virsh.c index b7cea58a57..4af8feab55 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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; /*