From: Peter Krempa Date: Tue, 22 Nov 2022 12:04:21 +0000 (+0100) Subject: virsh: vol-create-as: Use 'unsigned int' for flags X-Git-Tag: v9.0.0-rc1~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0022376b20ef84c14ef041e86d49ac5144038145;p=thirdparty%2Flibvirt.git virsh: vol-create-as: Use 'unsigned int' for flags The API itself uses 'unsigned int' so use the same type for the local variable in virsh. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/tools/virsh-volume.c b/tools/virsh-volume.c index 4f23481180..2df23c9b6f 100644 --- a/tools/virsh-volume.c +++ b/tools/virsh-volume.c @@ -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"))