]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: vol-create-as: Use 'unsigned int' for flags
authorPeter Krempa <pkrempa@redhat.com>
Tue, 22 Nov 2022 12:04:21 +0000 (13:04 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Dec 2022 15:18:37 +0000 (16:18 +0100)
The API itself uses 'unsigned int' so use the same type for the local
variable in virsh.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-volume.c

index 4f23481180f0a0a92e732050fbc8fbd3cb51d79f..2df23c9b6f5dc1dfcb4295918ab569eec6d1bc80 100644 (file)
@@ -236,7 +236,7 @@ cmdVolCreateAs(vshControl *ctl, const vshCmd *cmd)
     const char *snapshotStrVol = NULL, *snapshotStrFormat = NULL;
     unsigned long long capacity, allocation = 0;
     g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
-    unsigned long flags = 0;
+    unsigned int flags = 0;
     virshControl *priv = ctl->privData;
 
     if (vshCommandOptBool(cmd, "prealloc-metadata"))