mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
remove unused var
This commit is contained in:
parent
09dc29dd9d
commit
c56d3dd42e
1 changed files with 2 additions and 3 deletions
|
@ -58,7 +58,6 @@ uint8_t cmds[8][2] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static int global_found = 0;
|
static int global_found = 0;
|
||||||
static int global_found_candidate = 0;
|
|
||||||
static size_t thread_count = 2;
|
static size_t thread_count = 2;
|
||||||
|
|
||||||
static int param_getptr(const char *line, int *bg, int *en, int paramnum) {
|
static int param_getptr(const char *line, int *bg, int *en, int paramnum) {
|
||||||
|
@ -305,13 +304,13 @@ int main(int argc, char *argv[]) {
|
||||||
for (int i = 0; i < thread_count; ++i)
|
for (int i = 0; i < thread_count; ++i)
|
||||||
pthread_join(threads[i], NULL);
|
pthread_join(threads[i], NULL);
|
||||||
|
|
||||||
if (!global_found && !global_found_candidate) {
|
if (global_found == false) {
|
||||||
printf("\nFailed to find a key\n\n");
|
printf("\nFailed to find a key\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
t1 = msclock() - t1;
|
t1 = msclock() - t1;
|
||||||
if (t1 > 0)
|
if (t1 > 0)
|
||||||
printf("Execution time: %.0f ticks\n", (float)t1);
|
printf("execution time " _YELLOW_("%.2f") " sec\n", (float)t1 / 1000.0);
|
||||||
|
|
||||||
// clean up mutex
|
// clean up mutex
|
||||||
pthread_mutex_destroy(&print_lock);
|
pthread_mutex_destroy(&print_lock);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue