Includes cleanups
authorPeter Iannucci <iannucci@mit.edu>
Fri, 11 Oct 2013 18:05:18 +0000 (14:05 -0400)
committerPeter Iannucci <iannucci@mit.edu>
Fri, 11 Oct 2013 19:04:00 +0000 (15:04 -0400)
lock_server.cc
lock_tester.cc
rpc/connection.cc
rpc/connection.h
rpc/pollmgr.cc
rpc/rpc.cc
rpc/rpctest.cc
rsm.cc
rsm_client.cc
types.h

index d7367bd..40098d7 100644 (file)
@@ -1,6 +1,5 @@
 // the caching lock server implementation
 
-#include "types.h"
 #include "lock_server.h"
 #include <unistd.h>
 #include <arpa/inet.h>
index 84ac5cc..b2df781 100644 (file)
@@ -4,7 +4,6 @@
 
 #include "lock_client.h"
 #include <arpa/inet.h>
-#include <sys/types.h>
 #include <unistd.h>
 
 char log_thread_prefix = 'c';
index cc9f03c..6994f53 100644 (file)
@@ -2,7 +2,6 @@
 #include "rpc_protocol.h"
 #include <cerrno>
 #include <csignal>
-#include <sys/types.h>
 #include <netinet/tcp.h>
 #include <unistd.h>
 #include "marshall.h"
index 7032b8c..b1df8a1 100644 (file)
@@ -2,7 +2,6 @@
 #define connection_h
 
 #include "types.h"
-#include <sys/types.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
 #include "pollmgr.h"
index 4acff93..aeaf7b3 100644 (file)
@@ -1,4 +1,4 @@
-#include "types.h"
+#include "pollmgr.h"
 #include <errno.h>
 #include <sys/select.h>
 #include "file.h"
@@ -7,8 +7,6 @@
 #include <sys/epoll.h>
 #endif
 
-#include "pollmgr.h"
-
 static PollMgr instance;
 
 PollMgr & PollMgr::Instance() { return instance; }
index 471a5da..a08e287 100644 (file)
  x exited worker threads).
  */
 
-#include "types.h"
 #include "rpc.h"
 
-#include <sys/types.h>
 #include <arpa/inet.h>
 #include <netinet/tcp.h>
 #include <netdb.h>
index b5b975a..354b528 100644 (file)
@@ -5,7 +5,6 @@
 #include "rpc.h"
 #include <arpa/inet.h>
 #include <getopt.h>
-#include <sys/types.h>
 #include <unistd.h>
 
 #define NUM_CL 2
diff --git a/rsm.cc b/rsm.cc
index a44c24b..4e73f9f 100644 (file)
--- a/rsm.cc
+++ b/rsm.cc
 // The rule is that a module releases its internal locks before it
 // upcalls, but can keep its locks when calling down.
 
-#include <sys/types.h>
-#include <unistd.h>
-
-#include "types.h"
-#include "handle.h"
 #include "rsm.h"
+#include "handle.h"
 #include "rsm_client.h"
+#include <unistd.h>
 
 rsm::rsm(const string & _first, const string & _me) :
     stf(0), primary(_first), insync (false), inviewchange (true), vid_commit(0),
index ae88169..fa04e26 100644 (file)
@@ -1,4 +1,3 @@
-#include "types.h"
 #include "rsm_client.h"
 #include <arpa/inet.h>
 #include <handle.h>
diff --git a/types.h b/types.h
index b326ef7..d2d5411 100644 (file)
--- a/types.h
+++ b/types.h
@@ -1,6 +1,8 @@
 #ifndef types_h
 #define types_h
 
+#include <sys/types.h>
+
 #include <algorithm>
 using std::copy;
 using std::move;