[Lldb-commits] [lldb] r105736 - /lldb/trunk/source/Core/ConnectionFileDescriptor.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Jun 9 11:23:21 PDT 2010
Author: efriedma
Date: Wed Jun 9 13:23:21 2010
New Revision: 105736
URL: http://llvm.org/viewvc/llvm-project?rev=105736&view=rev
Log:
Add necessary includes. Remove unnecessary assignments to sin_len.
Modified:
lldb/trunk/source/Core/ConnectionFileDescriptor.cpp
Modified: lldb/trunk/source/Core/ConnectionFileDescriptor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ConnectionFileDescriptor.cpp?rev=105736&r1=105735&r2=105736&view=diff
==============================================================================
--- lldb/trunk/source/Core/ConnectionFileDescriptor.cpp (original)
+++ lldb/trunk/source/Core/ConnectionFileDescriptor.cpp Wed Jun 9 13:23:21 2010
@@ -18,6 +18,8 @@
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
+#include <string.h>
+#include <stdlib.h>
// C++ Includes
// Other libraries and framework includes
@@ -419,7 +421,6 @@
struct sockaddr_in sa;
::memset (&sa, 0, sizeof sa);
- sa.sin_len = sizeof sa;
sa.sin_family = AF_INET;
sa.sin_port = htons (listen_port_num);
sa.sin_addr.s_addr = htonl (INADDR_ANY);
@@ -512,7 +513,6 @@
struct sockaddr_in sa;
::bzero (&sa, sizeof (sa));
- sa.sin_len = sizeof sa;
sa.sin_family = AF_INET;
sa.sin_port = htons (port);
More information about the lldb-commits
mailing list