From b4b5b9475b6d8516187247525b546f15a4830b7e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 8 Nov 2015 17:54:18 +0100 Subject: [PATCH] fix warning (using enum instead of int for scanf arg) --- platforms/posix/src/remote_device_db_fs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platforms/posix/src/remote_device_db_fs.c b/platforms/posix/src/remote_device_db_fs.c index 1105d4e68..97f195619 100644 --- a/platforms/posix/src/remote_device_db_fs.c +++ b/platforms/posix/src/remote_device_db_fs.c @@ -112,9 +112,10 @@ static int get_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t int scan_result = sscan_link_key(link_key_str, link_key); if (scan_result == 0 ) return 0; - scan_result = sscanf( (char *) link_key_type_str, "%d", link_key_type); + int link_key_type_buffer; + scan_result = sscanf( (char *) link_key_type_str, "%d", link_key_type_buffer); if (scan_result == 0 ) return 0; - + *link_key_type = (link_key_type_t) link_key_type_buffer; return 1; }