From c1ba9154574d13ee0f0a8a8a65b4bd46fa6aa311 Mon Sep 17 00:00:00 2001 From: ERAMOTO Masaya Date: Thu, 27 Jul 2017 20:23:17 +0900 Subject: [PATCH] core: Add checking for unknown Policy options This adds to check for unknown Policy options. --- src/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.c b/src/main.c index d40221466..95c834199 100644 --- a/src/main.c +++ b/src/main.c @@ -93,6 +93,14 @@ static const char * const supported_options[] = { NULL }; +static const char * const policy_options[] = { + "ReconnectUUIDs", + "ReconnectAttempts", + "ReconnectIntervals", + "AutoEnable", + NULL +}; + GKeyFile *btd_get_main_conf(void) { return main_conf; @@ -221,6 +229,7 @@ static void check_config(GKeyFile *config) g_strfreev(keys); check_options(config, "General", supported_options); + check_options(config, "Policy", policy_options); } static int get_mode(const char *str) -- 2.47.3