Re: [PATCH 15/37] virDomainNetDefParseXML: Convert parsing of 'source_node' to a switch() statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
src/conf/domain_conf.c | 71 +++++++++++++++++++++++++++++-------------
1 file changed, 50 insertions(+), 21 deletions(-)


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux