mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 13:23:25 -07:00
Code cleanup:
- correctly use inttypes.h scanf and printf macros (PRIx64 et al) - fix indendation warnings
This commit is contained in:
parent
2d0717853d
commit
43534cbad2
14 changed files with 58 additions and 57 deletions
|
@ -1349,7 +1349,7 @@ uint64_t hexarray_to_uint64(uint8_t *key) {
|
|||
for (int i = 0;i < 8;i++)
|
||||
sprintf(&temp[(i *2)],"%02X",key[i]);
|
||||
temp[16] = '\0';
|
||||
if (sscanf(temp,"%016"llx,&uint_key) < 1)
|
||||
if (sscanf(temp,"%016" SCNx64,&uint_key) < 1)
|
||||
return 0;
|
||||
return uint_key;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue