]> xenbits.xensource.com Git - libvirt.git/commit
virt-ssh-helper: Don't use optind
authorAndrea Bolognani <abologna@redhat.com>
Fri, 10 Dec 2021 13:53:31 +0000 (14:53 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 10 Dec 2021 17:36:41 +0000 (18:36 +0100)
commita4941a0c27b9bc60dce46daf2a99d986688e9339
tree1830295136d5c5b70f6ebbbdb3299da998b3602c
parentd804408ef9044aeb0d73b2e83fc044c5fff3c86d
virt-ssh-helper: Don't use optind

It's a getopt interface and we're not using getopt, at least
directly, so even though it works relying on it feels wrong.

GOption takes care of removing any trace of the arguments it
consumes from argc and argv, leaving behind only non-option
arguments, so we can just use those standard variables.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/remote/remote_ssh_helper.c