Re: [PATCH] libxl: Avoid a variable named 'stat'

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

 



On Thu, 2017-08-24 at 12:34 +0100, George Dunlap wrote:
> @@ -5401,12 +5401,12 @@ libxlDomainBlockStatsVBD(virDomainObjPtr vm,
>  # define LIBXL_SET_VBDSTAT(FIELD, VAR, MUL)           \
>      if ((virAsprintf(&name, "%s/"FIELD, path) < 0) || \
>          (virFileReadAll(name, 256, &val) < 0) ||      \
> -        (sscanf(val, "%llu", &stat) != 1)) {          \
> +        (sscanf(val, "%llu", &status) != 1)) {          \

You messed up the alignment here...

>          virReportError(VIR_ERR_OPERATION_FAILED,      \
>                         _("cannot read %s"), name);    \
>          goto cleanup;                                 \
>      }                                                 \
> -    VAR += (stat * MUL);                              \
> +    VAR += (status * MUL);                              \

... and here. I've fixed it up before pushing.

Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux