Re: [PATCH 2/5] cmdStartGetFDs: Modernize

2022-02-03 Thread Ján Tomko
On a Thursday in 2022, Peter Krempa wrote: Calculate the length of the FD list beforehand to avoid multiple expansions and mainly simplify the code and use automatic freeing to remove the error code path. Signed-off-by: Peter Krempa --- tools/virsh-domain.c | 18 +++--- 1 file

[PATCH 2/5] cmdStartGetFDs: Modernize

2022-02-03 Thread Peter Krempa
Calculate the length of the FD list beforehand to avoid multiple expansions and mainly simplify the code and use automatic freeing to remove the error code path. Signed-off-by: Peter Krempa --- tools/virsh-domain.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff