mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
fixed compiler warnings
This commit is contained in:
parent
ce02f6f992
commit
f66021cf48
3 changed files with 3 additions and 4 deletions
|
@ -596,9 +596,8 @@ static void waitCmd(uint8_t iSelect)
|
||||||
return;
|
return;
|
||||||
hexout = (char *)malloc(iLen * 3 + 1);
|
hexout = (char *)malloc(iLen * 3 + 1);
|
||||||
if (hexout != NULL) {
|
if (hexout != NULL) {
|
||||||
uint8_t first, second;
|
|
||||||
for (int i = 0; i < iLen; i++) { // data in hex
|
for (int i = 0; i < iLen; i++) { // data in hex
|
||||||
sprintf(&hexout[i * 3], "%02hX ", recv[i]);
|
sprintf(&hexout[i * 3], "%02X ", recv[i]);
|
||||||
}
|
}
|
||||||
PrintAndLog("%s", hexout);
|
PrintAndLog("%s", hexout);
|
||||||
free(hexout);
|
free(hexout);
|
||||||
|
|
|
@ -362,7 +362,7 @@ int CmdLFRead(const char *Cmd)
|
||||||
c.arg[0] = 1;
|
c.arg[0] = 1;
|
||||||
} else if (*Cmd == '\0') {
|
} else if (*Cmd == '\0') {
|
||||||
c.arg[0] = 0;
|
c.arg[0] = 0;
|
||||||
} else if (sscanf(Cmd, "%i", &c.arg[0]) != 1) {
|
} else if (sscanf(Cmd, "%"lli, &c.arg[0]) != 1) {
|
||||||
PrintAndLog("use 'read' or 'read h', or 'read <divisor>'");
|
PrintAndLog("use 'read' or 'read h', or 'read <divisor>'");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ int nonce2key(uint32_t uid, uint32_t nt, uint32_t nr, uint64_t par_info, uint64_
|
||||||
p2 = state_s;
|
p2 = state_s;
|
||||||
while ( *p1 != -1 && *p2 != -1 ) {
|
while ( *p1 != -1 && *p2 != -1 ) {
|
||||||
if (compar_state(p1, p2) == 0) {
|
if (compar_state(p1, p2) == 0) {
|
||||||
printf("p1:%d p2:%d p3:%d key:%012llx\n",p1-last_keylist, p2-state_s, p3-last_keylist,*p1);
|
printf("p1:%ld p2:%ld p3:%ld key:%012"llx"\n",p1-last_keylist, p2-state_s, p3-last_keylist,*p1);
|
||||||
*p3++ = *p1++;
|
*p3++ = *p1++;
|
||||||
p2++;
|
p2++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue