Commit be5a20c8d6bf9bfb39afc2bdfbdf506ba289bcf8

Con Kolivas 2013-04-06T02:29:21

Fix warnings.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/driver-avalon.c b/driver-avalon.c
index 5d4656d..973b175 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -289,14 +289,14 @@ static bool avalon_decode_nonce(struct thr_info *thr, struct avalon_result *ar,
 {
 	struct cgpu_info *avalon;
 	struct avalon_info *info;
-	int avalon_get_work_count;
 	struct work *work;
 
 	avalon = thr->cgpu;
 	if (unlikely(!avalon->works))
 		return false;
 
-	work = find_queued_work_bymidstate(avalon, ar->midstate, 32, ar->data, 64, 12);
+	work = find_queued_work_bymidstate(avalon, (char *)ar->midstate, 32,
+					   (char *)ar->data, 64, 12);
 	if (!work)
 		return false;