]> xenbits.xensource.com Git - libvirt.git/commit
tools: Fix vshControl declaration and initialization
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Aug 2023 12:57:44 +0000 (14:57 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Aug 2023 14:30:56 +0000 (16:30 +0200)
commit33b794898364be55f19eaf9a834cd095b75e1b71
treeb75ed520149f60652ce9db3be5ff577cd20fd88d
parenta8262cb331db0f1a706edbadffc2cd5b01e44be6
tools: Fix vshControl declaration and initialization

Both virsh and virt-admin have vshControl typed variables and
also pointers to these variables. In both cases these are
declared on a single line. Do the following:

  1) break declaration into two lines,
  2) use struct zero initializer for vshControl and
     virshControl/vshAdmControl structs,
  3) drop explicit memset(.., 0, ...) ;

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Claudio Fontana <cfontana@suse.de>
tools/virsh.c
tools/virt-admin.c