Browse Source

Merge pull request #189 from Bllacky/patch-7

Update sgminer.c
refactor
Noel Maersk 11 years ago
parent
commit
2c00158216
  1. 4
      sgminer.c

4
sgminer.c

@ -1718,7 +1718,7 @@ void free_work(struct work *w)
free(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); static void calc_diff(struct work *work, double known);
char *workpadding = "000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000"; char *workpadding = "000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000";
@ -5890,7 +5890,7 @@ out_unlock:
return work; 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]; unsigned char hash1[32];

Loading…
Cancel
Save