chg: 'hf iclass sim' - void*, should be uin8_t*
This commit is contained in:
@@ -405,7 +405,7 @@ int CmdHFiClassSim(const char *Cmd) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
size_t datalen = NUM_CSNS * 24;
|
size_t datalen = NUM_CSNS * 24;
|
||||||
void *dump = calloc(datalen, sizeof(uint8_t));
|
uint8_t *dump = calloc(datalen, sizeof(uint8_t));
|
||||||
if (!dump) {
|
if (!dump) {
|
||||||
PrintAndLogEx(WARNING, "Failed to allocate memory");
|
PrintAndLogEx(WARNING, "Failed to allocate memory");
|
||||||
return 2;
|
return 2;
|
||||||
@@ -458,7 +458,7 @@ int CmdHFiClassSim(const char *Cmd) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
size_t datalen = NUM_CSNS * 24;
|
size_t datalen = NUM_CSNS * 24;
|
||||||
void *dump = calloc(datalen, sizeof(uint8_t));
|
uint8_t *dump = calloc(datalen, sizeof(uint8_t));
|
||||||
if (!dump) {
|
if (!dump) {
|
||||||
PrintAndLogEx(WARNING, "Failed to allocate memory");
|
PrintAndLogEx(WARNING, "Failed to allocate memory");
|
||||||
return 2;
|
return 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user