aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/NullSymbol.cpp2
-rw-r--r--src/OfdmGenerator.cpp2
-rw-r--r--src/TII.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/NullSymbol.cpp b/src/NullSymbol.cpp
index 015e564..4684dfe 100644
--- a/src/NullSymbol.cpp
+++ b/src/NullSymbol.cpp
@@ -53,7 +53,7 @@ int NullSymbol::process(Buffer* dataOut)
PDEBUG("NullSymbol::process(dataOut: %p)\n", dataOut);
dataOut->setLength(myNbCarriers * 2 * sizeof(float));
- bzero(dataOut->getData(), dataOut->getLength());
+ memset(dataOut->getData(), 0, dataOut->getLength());
return dataOut->getLength();
}
diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp
index bac3db0..a6609a3 100644
--- a/src/OfdmGenerator.cpp
+++ b/src/OfdmGenerator.cpp
@@ -190,7 +190,7 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut)
myFftIn[0][0] = 0;
myFftIn[0][1] = 0;
- bzero(&myFftIn[myZeroDst], myZeroSize * sizeof(FFT_TYPE));
+ memset(&myFftIn[myZeroDst], 0, myZeroSize * sizeof(FFT_TYPE));
memcpy(&myFftIn[myPosDst], &in[myPosSrc],
myPosSize * sizeof(FFT_TYPE));
memcpy(&myFftIn[myNegDst], &in[myNegSrc],
diff --git a/src/TII.cpp b/src/TII.cpp
index 4710ed4..a30d7f6 100644
--- a/src/TII.cpp
+++ b/src/TII.cpp
@@ -190,7 +190,7 @@ int TII::process(Buffer* dataIn, Buffer* dataOut)
}
dataOut->setLength(m_carriers * sizeof(complexf));
- bzero(dataOut->getData(), dataOut->getLength());
+ memset(dataOut->getData(), 0, dataOut->getLength());
if (m_conf.enable and m_insert) {
boost::mutex::scoped_lock lock(m_enabled_carriers_mutex);