[PATCH] manager: fix UseDefaultInterface warning

James Prestwood
2024-09-20T16:36:19Z

This logic was incorrect here, we only want to print if the option
is used, not if its unset.
---
src/manager.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/manager.c b/src/manager.c
index 5bedfcc5..436daa56 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -894,11 +894,11 @@ static int manager_init(void)
}

if (!l_settings_get_bool(config, "General",
- "UseDefaultInterface", &use_default)) {
+ "UseDefaultInterface", &use_default))
+ use_default = false;
+ else
l_warn("[General].UseDefaultInterface is deprecated, please "
"use [DriverQuirks].DefaultInterface instead");
- use_default = false;
- }

return 0;

--
2.34.1