mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
cppcheck assigned val never used and reduce var scope
This commit is contained in:
parent
405931d565
commit
4c00cc5bcf
1 changed files with 1 additions and 2 deletions
|
@ -369,7 +369,6 @@ static void *sorttable(void *dd) {
|
|||
char outfile[64];
|
||||
unsigned char *data = NULL;
|
||||
struct stat filestat;
|
||||
uint64_t numentries = 0;
|
||||
int index = (int)(long)dd;
|
||||
int space = 0x100 / NUM_SORT_THREADS;
|
||||
|
||||
|
@ -410,7 +409,7 @@ static void *sorttable(void *dd) {
|
|||
// copy data into table
|
||||
memcpy(table, data, filestat.st_size);
|
||||
|
||||
numentries = filestat.st_size / DATASIZE;
|
||||
uint64_t numentries = filestat.st_size / DATASIZE;
|
||||
|
||||
// unmap file and close it
|
||||
if (munmap(data, filestat.st_size)) {
|
||||
|
|
Loading…
Reference in a new issue