Re: [PATCH v2 2/2] domain_conf: rewrite if else functions to switch

2022-07-21 Thread Martin Kletzander
On Thu, Jul 21, 2022 at 01:30:45PM +0200, Kristina Hanicova wrote: Pattern of using switch instead of a long if else construction is used everywhere, so I used it here as well to make the code more consistent (and remove that else after return). I also included all the values from the enum. Th

[PATCH v2 2/2] domain_conf: rewrite if else functions to switch

2022-07-21 Thread Kristina Hanicova
Pattern of using switch instead of a long if else construction is used everywhere, so I used it here as well to make the code more consistent (and remove that else after return). I also included all the values from the enum. Signed-off-by: Kristina Hanicova --- src/conf/domain_conf.c | 42 ++