rxdebug: Tidy header includes
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 27 Mar 2011 21:20:08 +0000 (22:20 +0100)
committerJeffrey Altman <jaltman@openafs.org>
Sun, 3 Apr 2011 16:42:25 +0000 (09:42 -0700)
Remove headers which are provided by libroken, and reorder header
includes so that they're a bit a more legible.

Change-Id: I47f804e455d0251dc30c5d5be2433f3ee7611fae
Reviewed-on: http://gerrit.openafs.org/4404
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>

src/rxdebug/rxdebug.c
src/rxdebug/rxdumptrace.c

index b6e1bcf..29c7f4a 100644 (file)
@@ -9,36 +9,13 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#include <sys/types.h>
-#include <errno.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <sys/file.h>
-#include <netdb.h>
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <string.h>
-#include <sys/stat.h>
 #include <afs/afsutil.h>
-#include <afs/stds.h>
 #include <afs/cmd.h>
 
-#include <stdio.h>
-
 #include <rx/rx_user.h>
 #include <rx/rx_clock.h>
 #include <rx/rx_queue.h>
index a20bb08..69f95b2 100644 (file)
 
 
 #ifdef RXDEBUG
-#include <string.h>
-#ifdef AFS_NT40_ENV
-#include <fcntl.h>
-#include <io.h>
-#else
-#include <sys/file.h>
-#include <unistd.h>
-#endif
+
+#include <roken.h>
+
+#include <afs/afsutil.h>
+
 #include "rx.h"
 #include "rx_globals.h"
 #include "rx_trace.h"
@@ -37,11 +34,6 @@ struct rx_trace {
     afs_uint32 event;
 };
 
-#include <errno.h>
-#ifdef AFS_NT40_ENV
-#include <afs/afsutil.h>
-#endif
-
 int
 main(int argc, char **argv)
 {