[PATCH 15/37] virDomainNetDefParseXML: Convert parsing of 'source_node' to a switch() statement
Ján Tomko
jtomko at redhat.com
Wed Sep 21 14:32:17 UTC 2022
On a Monday in 2022, Peter Krempa wrote:
>Convert the individual 'if' clauses to a swtich statement.
s/swtich/switch/
>
>By moving the check that 'source_node' is non-null inside of each case
>rather we will be able to move more type specific code into the swithc
s/swithc/switch/
>statemen when it will be refactored in subsequent patches.
s/statemen/statement/
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/conf/domain_conf.c | 71 +++++++++++++++++++++++++++++-------------
> 1 file changed, 50 insertions(+), 21 deletions(-)
>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
Jano
More information about the libvir-list
mailing list