main.conf: Fix parsing of uint32_t values
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 11 Sep 2023 20:51:20 +0000 (13:51 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:04 +0000 (19:04 +0530)
commit017a91f7e97297654122005eb78092a64081a3c9
tree602141dbdaa95dabda5da9e5a5ca07e42e8d3086
parent3765d97c64776895bdc5b02f6fd15ca9d73e1a34
main.conf: Fix parsing of uint32_t values

Passing UINT32_MAX as int may overfollow causing errors such as:

bluetoothd[2688495]: src/main.c:parse_config_int()
General.TemporaryTimeout = 60 is out of range (> -1)

Fixes: https://github.com/bluez/bluez/issues/583#issuecomment-1713447461
src/main.c