]> xenbits.xensource.com Git - libvirt.git/commit
virsh: reduce complexity in argv iteration
authorEric Blake <eblake@redhat.com>
Tue, 14 Jun 2011 17:26:20 +0000 (11:26 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 15 Jun 2011 13:43:01 +0000 (07:43 -0600)
commita2ff807a6866e11a39965f96dfe97757f79dba1e
treec4f00162a3c7e8c82a2e4cb3904dc1268548489f
parentb86524e8d56c8e507dd41fa5b648d23b8d641ee3
virsh: reduce complexity in argv iteration

This reduces things from O(n^2) to O(n).

* tools/virsh.c (vshCommandOptArgv): Change signature.
(cmdEcho): Update caller.
Based on a patch by Lai Jiangshan.
tools/virsh.c