diff options
author | Greg Clayton <gclayton@apple.com> | 2011-02-04 21:13:05 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-02-04 21:13:05 +0000 |
commit | 72b77ebc8af054bc34b7da433a6642a9c6241c79 (patch) | |
tree | 59e7dcf0c934ca0b23e2f356a3ebb5bf1a7e26b0 /lldb/source/Core/ConnectionFileDescriptor.cpp | |
parent | d2e2f56c3654a07b42fe1bd47ad3a832ce0d74ea (diff) | |
download | bcm5719-llvm-72b77ebc8af054bc34b7da433a6642a9c6241c79.tar.gz bcm5719-llvm-72b77ebc8af054bc34b7da433a6642a9c6241c79.zip |
Remove bzero use and replace with memset (patch from Kirk Beitz).
llvm-svn: 124897
Diffstat (limited to 'lldb/source/Core/ConnectionFileDescriptor.cpp')
-rw-r--r-- | lldb/source/Core/ConnectionFileDescriptor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp index 1b653780516..e928901e674 100644 --- a/lldb/source/Core/ConnectionFileDescriptor.cpp +++ b/lldb/source/Core/ConnectionFileDescriptor.cpp @@ -571,7 +571,7 @@ ConnectionFileDescriptor::SocketConnect (const char *host_and_port, Error *error SetSocketOption (m_fd, SOL_SOCKET, SO_REUSEADDR, 1); struct sockaddr_in sa; - ::bzero (&sa, sizeof (sa)); + ::memset (&sa, 0, sizeof (sa)); sa.sin_family = AF_INET; sa.sin_port = htons (port); |