fix warning (using enum instead of int for scanf arg)

This commit is contained in:
Matthias Ringwald 2015-11-08 17:54:18 +01:00
parent 1fa0871725
commit b4b5b9475b

View File

@ -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;
}