From fe64ac99d6929b304dc3353c648c9c73edf8be69 Mon Sep 17 00:00:00 2001 From: Bllacky Date: Wed, 9 Apr 2014 22:17:37 +0300 Subject: [PATCH] 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. --- sgminer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sgminer.c b/sgminer.c index e3871210..0058102e 100644 --- a/sgminer.c +++ b/sgminer.c @@ -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];