]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh, daemon: prefer unsigned flags
authorEric Blake <eblake@redhat.com>
Thu, 7 Jul 2011 17:53:04 +0000 (11:53 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 13 Jul 2011 23:05:10 +0000 (17:05 -0600)
* tools/virsh.c (vshCmdDef): Change flags type.
* daemon/remote.c (remoteDispatchOpen): Likewise.

daemon/remote.c
tools/virsh.c

index 0172626e18ae0720996c35a5f1d01e7a10dc346a..e93a0dcba0ce3c3217f0b73e91c2590fffbcc143 100644 (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;
 
index b7cea58a572ea855286eeb11151722cabf80f0ad..4af8feab559fa3d6524cc6bac764024c4fbdcc66 100644 (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;
 
 /*