]> xenbits.xensource.com Git - libvirt.git/commit
vsh: Rework vshReadlineCommandGenerator()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Jan 2021 16:22:00 +0000 (17:22 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Feb 2021 10:51:59 +0000 (11:51 +0100)
commit72636ed86de974b6c78922ab6450eee033d9da62
tree56511428c3626f3aeecd9e96c27d294ad5e29a75
parent9b005b19673b6e8bc4b30c81c87a450a57c8e410
vsh: Rework vshReadlineCommandGenerator()

Firstly, move variable declarations into the inner most block
they are used. Secondly, use for() loop instead of while so that
we don't have to advance loop counter explicitly on 'continue'.

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