[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCHv2 20/27] virsh, daemon: prefer unsigned flags



* tools/virsh.c (vshCmdDef): Change flags type.
* daemon/remote.c (remoteDispatchOpen): Likewise.
---

v2: new patch

 daemon/remote.c |    2 +-
 tools/virsh.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/daemon/remote.c b/daemon/remote.c
index a2e79ef..1ade187 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -442,7 +442,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 3cdf043..9c375a4 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;

 /*
-- 
1.7.4.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]