[libvirt] [PATCH] storage: use virCommand to avoid compiler warning
Eric Blake
eblake at redhat.com
Wed May 4 14:57:05 UTC 2011
On 05/03/2011 10:32 PM, Laine Stump wrote:
> On 05/03/2011 06:14 PM, Eric Blake wrote:
>> clang didn't like the last increment to nargs. But why even
>> track nargs ourselves, when virCommand does it for us?
>>
>> * src/storage/storage_backend_iscsi.c
>> (virStorageBackendISCSIConnection): Switch to virCommand to avoid
>> a dead-store warning on nargs.
>> ---
>> src/storage/storage_backend_iscsi.c | 36
>> ++++++++--------------------------
>> 1 files changed, 9 insertions(+), 27 deletions(-)
>
> ACK. It really is nice how much cruft is removed when switching to
> virCommand!
Thanks; pushed.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110504/9d6bfd0d/attachment-0001.sig>
More information about the libvir-list
mailing list