Remove bzero use and replace with memset (patch from Kirk Beitz).
llvm-svn: 124897
diff --git a/lldb/source/Core/UUID.cpp b/lldb/source/Core/UUID.cpp
index 2d17eb6..035a9e5 100644
--- a/lldb/source/Core/UUID.cpp
+++ b/lldb/source/Core/UUID.cpp
@@ -22,7 +22,7 @@
UUID::UUID()
{
- ::bzero (m_uuid, sizeof(m_uuid));
+ ::memset (m_uuid, 0, sizeof(m_uuid));
}
UUID::UUID(const UUID& rhs)
@@ -35,7 +35,7 @@
if (uuid_bytes && num_uuid_bytes >= 16)
::memcpy (m_uuid, uuid_bytes, sizeof (m_uuid));
else
- ::bzero (m_uuid, sizeof(m_uuid));
+ ::memset (m_uuid, 0, sizeof(m_uuid));
}
const UUID&
@@ -53,7 +53,7 @@
void
UUID::Clear()
{
- ::bzero (m_uuid, sizeof(m_uuid));
+ ::memset (m_uuid, 0, sizeof(m_uuid));
}
const void *
@@ -85,7 +85,7 @@
if (uuid_bytes)
::memcpy (m_uuid, uuid_bytes, sizeof (m_uuid));
else
- ::bzero (m_uuid, sizeof(m_uuid));
+ ::memset (m_uuid, 0, sizeof(m_uuid));
}
size_t