Code cleanup:

- correctly use inttypes.h scanf and printf macros (PRIx64 et al)
- fix indendation warnings
This commit is contained in:
pwpiwi 2017-02-22 22:45:00 +01:00
commit 43534cbad2
14 changed files with 58 additions and 57 deletions

View file

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