From 5a0fc0ad21d562612676ef88ef2d533b2391810a Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Fri, 4 Jun 2010 15:35:31 +0700 Subject: Replace deprecated bzero with memset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mikhail Gusarov Reviewed-by: Marcin BaczyƄski Reviewed-by: Daniel Stone Reviewed-by: Alan Coopersmith Reviewed-by: Matt Turner --- record/record.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'record/record.c') diff --git a/record/record.c b/record/record.c index 82d5f9f1e..5bd46c29e 100644 --- a/record/record.c +++ b/record/record.c @@ -1495,7 +1495,7 @@ RecordAllocIntervals(SetInfoPtr psi, int nIntervals) malloc(nIntervals * sizeof(RecordSetInterval)); if (!psi->intervals) return BadAlloc; - bzero(psi->intervals, nIntervals * sizeof(RecordSetInterval)); + memset(psi->intervals, 0, nIntervals * sizeof(RecordSetInterval)); psi->size = nIntervals; return Success; } /* end RecordAllocIntervals */ @@ -1669,7 +1669,7 @@ RecordRegisterClients(RecordContextPtr pContext, ClientPtr client, xRecordRegist err = BadAlloc; goto bailout; } - bzero(si, sizeof(SetInfoRec) * maxSets); + memset(si, 0, sizeof(SetInfoRec) * maxSets); /* theoretically you must do this because NULL may not be all-bits-zero */ for (i = 0; i < maxSets; i++) @@ -2053,7 +2053,7 @@ RecordAllocRanges(GetContextRangeInfoPtr pri, int nRanges) pri->pRanges = pNewRange; pri->size = newsize; - bzero(&pri->pRanges[pri->size - SZINCR], SZINCR * sizeof(xRecordRange)); + memset(&pri->pRanges[pri->size - SZINCR], 0, SZINCR * sizeof(xRecordRange)); if (pri->nRanges < nRanges) pri->nRanges = nRanges; return Success; -- cgit v1.2.3