Commit cbe13be85c758798a05aaa97158802cfb85c8e0d

Con Kolivas 2013-04-26T12:57:21

Use htobe32 function for converting nonce in bflsc.

diff --git a/driver-bflsc.c b/driver-bflsc.c
index 226d8ba..110ca78 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -1116,7 +1116,7 @@ static void process_nonces(struct cgpu_info *bflsc, int dev, int count, char **f
 	num = atoi(fields[QUE_NONCECOUNT]);
 	if (num != count - QUE_FLD_MIN) {
 		// error msg
-	} 
+	}
 
 	memset(midstate, 0, MIDSTATE_BYTES);
 	memset(blockdata, 0, MERKLE_BYTES);
@@ -1137,9 +1137,7 @@ static void process_nonces(struct cgpu_info *bflsc, int dev, int count, char **f
 		}
 
 		hex2bin((void*)&nonce, fields[i], 4);
-#ifndef __BIG_ENDIAN__
-		nonce = swab32(nonce);
-#endif
+		nonce = htobe32(nonce);
 		wr_lock(&(sc_info->stat_lock));
 		sc_info->sc_devs[dev].nonces_found++;
 		wr_unlock(&(sc_info->stat_lock));