main.conf: Fix parsing of mode options
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 18 Feb 2022 02:10:50 +0000 (18:10 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commit086cdc93ba72dd68e1f996785c41e5a7c60ff6a3
treecd79ccf1fc35cdb23e77e0a3d5d8bab0e77f1ff8
parent378c13b523bb55233fd125b1132c293c80ef6088
main.conf: Fix parsing of mode options

This replace the use of g_key_file_get_integer, which is limited to
only decimal values, to g_key_file_get_string and then use strtol to
convert the string value to integer.

Fixes: https://github.com/bluez/bluez/issues/293
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/main.c