Re: [libvirt] [PATCH] maint: remove redundant tests after virStrToLong

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

 



2010/3/30 Eric Blake <eblake@xxxxxxxxxx>:
> virStrToLong* guarantees (via strtol) that the end pointer will be set
> to the point at which parsing stopped (even on failure, this point is
> the start of the input string).
>
> * src/esx/esx_driver.c (esxGetVersion): Remove pointless
> conditional.
> * src/qemu/qemu_conf.c (qemuParseCommandLinePCI)
> (qemuParseCommandLineUSB, qemuParseCommandLineSmp): Likewise.
> * src/qemu/qemu_monitor_text.c
> (qemuMonitorTextGetMigrationStatus): Likewise.
> ---
>  src/esx/esx_driver.c         |    6 ++----
>  src/qemu/qemu_conf.c         |   14 ++++++--------
>  src/qemu/qemu_monitor_text.c |    6 +++---
>  3 files changed, 11 insertions(+), 15 deletions(-)
>

ACK.

Matthias

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