diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-04-29 13:17:30 +0100 |
---|---|---|
committer | finn.williams <finn.williams@arm.com> | 2020-05-07 13:56:43 +0000 |
commit | e09fc820968ee4de20df60e371088582a710bad0 (patch) | |
tree | 17047a89e67ff0265a801d79add45c263cab1259 /profiling/server | |
parent | ec99f2907ceecf8045d1cf392a51e57d9fb6bb60 (diff) | |
download | armnn-e09fc820968ee4de20df60e371088582a710bad0.tar.gz |
IVGCVSW-4730 Remove the duplication of PIPE_MAGIC in the code base
Change-Id: I41c6e917b29eee33360758b6c5afe5dadba89093
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Diffstat (limited to 'profiling/server')
-rw-r--r-- | profiling/server/src/basePipeServer/BasePipeServer.cpp | 6 | ||||
-rw-r--r-- | profiling/server/src/basePipeServer/BasePipeServer.hpp | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/profiling/server/src/basePipeServer/BasePipeServer.cpp b/profiling/server/src/basePipeServer/BasePipeServer.cpp index 1d5e0b6414..7e8789aa2a 100644 --- a/profiling/server/src/basePipeServer/BasePipeServer.cpp +++ b/profiling/server/src/basePipeServer/BasePipeServer.cpp @@ -5,6 +5,8 @@ #include "BasePipeServer.hpp" +#include "common/include/Constants.hpp" + #include <iostream> #include <boost/cast.hpp> #include <vector> @@ -65,11 +67,11 @@ bool BasePipeServer::WaitForStreamMetaData() EchoPacket(PacketDirection::ReceivedData, pipeMagic, 4); // Before we interpret the length we need to read the pipe_magic word to determine endianness. - if (ToUint32(&pipeMagic[0], TargetEndianness::BeWire) == PIPE_MAGIC) + if (ToUint32(&pipeMagic[0], TargetEndianness::BeWire) == armnnProfiling::PIPE_MAGIC) { m_Endianness = TargetEndianness::BeWire; } - else if (ToUint32(&pipeMagic[0], TargetEndianness::LeWire) == PIPE_MAGIC) + else if (ToUint32(&pipeMagic[0], TargetEndianness::LeWire) == armnnProfiling::PIPE_MAGIC) { m_Endianness = TargetEndianness::LeWire; } diff --git a/profiling/server/src/basePipeServer/BasePipeServer.hpp b/profiling/server/src/basePipeServer/BasePipeServer.hpp index c03774e452..4e6e0c0e4b 100644 --- a/profiling/server/src/basePipeServer/BasePipeServer.hpp +++ b/profiling/server/src/basePipeServer/BasePipeServer.hpp @@ -107,7 +107,6 @@ private: armnnUtils::Sockets::Socket m_ClientConnection; bool m_EchoPackets; TargetEndianness m_Endianness; - static const uint32_t PIPE_MAGIC = 0x45495434; uint32_t m_StreamMetaDataVersion; uint32_t m_StreamMetaDataMaxDataLen; |