|
|
|
@ -1718,7 +1718,7 @@ void free_work(struct work *w)
@@ -1718,7 +1718,7 @@ void free_work(struct work *w)
|
|
|
|
|
free(w); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void gen_hash(unsigned char *data, unsigned char *hash, int len); |
|
|
|
|
static void gen_hash(unsigned char *data, unsigned char *hash, size_t len); |
|
|
|
|
static void calc_diff(struct work *work, double known); |
|
|
|
|
char *workpadding = "000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000"; |
|
|
|
|
|
|
|
|
@ -5890,7 +5890,7 @@ out_unlock:
@@ -5890,7 +5890,7 @@ out_unlock:
|
|
|
|
|
return work; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void gen_hash(unsigned char *data, unsigned char *hash, int len) |
|
|
|
|
static void gen_hash(unsigned char *data, unsigned char *hash, size_t len) |
|
|
|
|
{ |
|
|
|
|
unsigned char hash1[32]; |
|
|
|
|
|
|
|
|
|