[libvirt PATCH 1/6] virt-ssh-helper: Don't use optind

Ján Tomko jtomko at redhat.com
Fri Dec 10 17:12:33 UTC 2021


On a Friday in 2021, Andrea Bolognani wrote:
>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 at redhat.com>
>---
> src/remote/remote_ssh_helper.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211210/2da81585/attachment-0001.sig>


More information about the libvir-list mailing list