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

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

 



> On Aug 24, 2017, at 3:24 PM, Andrea Bolognani <abologna@xxxxxxxxxx> wrote:
> 
> 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.

Yes, I noticed that after sending it.  Thanks for fixing it up.

 -George


--
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