Browse Source

Replace deprecated bzero with memset in bflsc driver.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
102b9477aa
  1. 6
      driver-bflsc.c

6
driver-bflsc.c

@ -602,7 +602,7 @@ static bool getinfo(struct cgpu_info *bflsc, int dev)
return false; return false;
} }
bzero(&sc_dev, sizeof(struct bflsc_dev)); memset(&sc_dev, 0, sizeof(struct bflsc_dev));
sc_info->sc_count = 1; sc_info->sc_count = 1;
res = tolines(bflsc, dev, buf, &lines, &items, C_GETDETAILS); res = tolines(bflsc, dev, buf, &lines, &items, C_GETDETAILS);
for (i = 0; i < lines-1; i++) { for (i = 0; i < lines-1; i++) {
@ -1118,8 +1118,8 @@ static void process_nonces(struct cgpu_info *bflsc, int dev, int count, char **f
// error msg // error msg
} }
bzero(midstate, MIDSTATE_BYTES); memset(midstate, 0, MIDSTATE_BYTES);
bzero(blockdata, MERKLE_BYTES); memset(blockdata, 0, MERKLE_BYTES);
hex2bin((unsigned char *)midstate, fields[QUE_MIDSTATE], MIDSTATE_BYTES); hex2bin((unsigned char *)midstate, fields[QUE_MIDSTATE], MIDSTATE_BYTES);
hex2bin((unsigned char *)blockdata, fields[QUE_BLOCKDATA], MERKLE_BYTES); hex2bin((unsigned char *)blockdata, fields[QUE_BLOCKDATA], MERKLE_BYTES);

Loading…
Cancel
Save