From b949fa79d9506902f1d1824b18a694af2b308600 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 8 Nov 2015 17:58:14 +0100 Subject: [PATCH] fix warning (using enum instead of int for scanf arg) --- platforms/posix/src/remote_device_db_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/posix/src/remote_device_db_fs.c b/platforms/posix/src/remote_device_db_fs.c index 97f195619..b7421d9ba 100644 --- a/platforms/posix/src/remote_device_db_fs.c +++ b/platforms/posix/src/remote_device_db_fs.c @@ -113,7 +113,7 @@ static int get_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t if (scan_result == 0 ) return 0; int link_key_type_buffer; - scan_result = sscanf( (char *) link_key_type_str, "%d", 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;