mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Update sgminer.c
One small change to work well with previous ones. Number of warnings now is 151, down from 157. Still a long way to go. Most of the serious warnings are related to variables in miner.h, which is so intertwined with everything else that I fear of breaking something or making performance worse if I touch miner.h too much.
This commit is contained in:
parent
4f3d2edcc8
commit
fe64ac99d6
@ -1717,7 +1717,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";
|
||||
|
||||
@ -5889,7 +5889,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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user