From 102b9477aa0bb8c638f46650c4e8dd8568b79a1e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 26 Apr 2013 12:54:48 +1000 Subject: [PATCH] Replace deprecated bzero with memset in bflsc driver. --- driver-bflsc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver-bflsc.c b/driver-bflsc.c index e95805c2..226d8ba0 100644 --- a/driver-bflsc.c +++ b/driver-bflsc.c @@ -602,7 +602,7 @@ static bool getinfo(struct cgpu_info *bflsc, int dev) return false; } - bzero(&sc_dev, sizeof(struct bflsc_dev)); + memset(&sc_dev, 0, sizeof(struct bflsc_dev)); sc_info->sc_count = 1; res = tolines(bflsc, dev, buf, &lines, &items, C_GETDETAILS); 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 } - bzero(midstate, MIDSTATE_BYTES); - bzero(blockdata, MERKLE_BYTES); + memset(midstate, 0, MIDSTATE_BYTES); + memset(blockdata, 0, MERKLE_BYTES); hex2bin((unsigned char *)midstate, fields[QUE_MIDSTATE], MIDSTATE_BYTES); hex2bin((unsigned char *)blockdata, fields[QUE_BLOCKDATA], MERKLE_BYTES);