CHG: reduced some compiler warnings on Ubuntu 14.04

This commit is contained in:
iceman1001
2016-04-19 22:51:59 +02:00
parent 165bf558e7
commit 69687aafb7
4 changed files with 29 additions and 9 deletions

View File

@ -8,6 +8,11 @@
#include "craptev1.h"
#include "crypto1_bs.h"
#include "crypto1_bs_crack.h"
#include <inttypes.h>
#define __STDC_FORMAT_MACROS
#define llx PRIx64
#define lli PRIi64
#define lu PRIu32
// linked from .so / .c files by bla
extern uint64_t *readnonces(char* fname);
@ -70,14 +75,14 @@ int main(int argc, char* argv[]){
total_states_tested = 0;
keys_found = 0;
printf("Starting %lu threads to test %lu states\n", thread_count, total_states);
printf("Starting %zu threads to test %zu states\n", thread_count, total_states);
for(i = 0; i < thread_count; i++){
pthread_create(&threads[i], NULL, crack_states_thread, (void*) i);
}
for(i = 0; i < thread_count; i++){
pthread_join(threads[i], 0);
}
printf("Tested %lu states\n", total_states_tested);
printf("Tested %zu states\n", total_states_tested);
craptev1_destroy_space(space);
return 0;