Browse Source

Use htobe32 function for converting nonce in bflsc.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
cbe13be85c
  1. 4
      driver-bflsc.c

4
driver-bflsc.c

@ -1137,9 +1137,7 @@ static void process_nonces(struct cgpu_info *bflsc, int dev, int count, char **f
} }
hex2bin((void*)&nonce, fields[i], 4); hex2bin((void*)&nonce, fields[i], 4);
#ifndef __BIG_ENDIAN__ nonce = htobe32(nonce);
nonce = swab32(nonce);
#endif
wr_lock(&(sc_info->stat_lock)); wr_lock(&(sc_info->stat_lock));
sc_info->sc_devs[dev].nonces_found++; sc_info->sc_devs[dev].nonces_found++;
wr_unlock(&(sc_info->stat_lock)); wr_unlock(&(sc_info->stat_lock));

Loading…
Cancel
Save