]> xenbits.xensource.com Git - libvirt.git/commit
vshCmddefGetOption: Change type of opt_index
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Jul 2016 15:28:40 +0000 (17:28 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Jul 2016 11:01:54 +0000 (13:01 +0200)
commit2bc97f2708c07327b673912ecbd3a5d5e1cb0471
treea84347ef092745f5067488130ca246e30ecfda8f
parentdcd5f59c5fdef7a8bbe13fe788b51a4c798772a4
vshCmddefGetOption: Change type of opt_index

This function tries to look up desired option for a given parsed
command. Upon successful return it also stores option position
into passed *opt_index. Now, this variable is type of int, even
though it is never ever used to store negative value. Moreover,
the variable is set from a local variable which is type of
size_t.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/vsh.c