[hipl-commit] [trunk] Rev 4368: Only #include required headers in conntest.c, conntest.h, conntest-server.c.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 20 Apr 2010 18:21:24 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 20/04/2010 at 18:21:24
Revision: 4368
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Only #include required headers in conntest.c, conntest.h, conntest-server.c.

Modified:
  M  test/conntest-server.c
  M  test/conntest.c
  M  test/conntest.h

=== modified file 'test/conntest-server.c'
--- test/conntest-server.c      2010-04-09 16:24:44 +0000
+++ test/conntest-server.c      2010-04-20 15:20:07 +0000
@@ -25,7 +25,7 @@
 #endif
 #include <signal.h>
 
-#include "config.h"
+#include "lib/core/debug.h"
 #include "conntest.h"
 
 /**

=== modified file 'test/conntest.c'
--- test/conntest.c     2010-04-20 15:07:46 +0000
+++ test/conntest.c     2010-04-20 15:20:07 +0000
@@ -10,6 +10,14 @@
 
 #define _BSD_SOURCE
 
+#include <stdio.h>
+#include <string.h>
+#include <netinet/in.h>
+#include <netinet/ip.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+
 #include "conntest.h"
 #include "lib/tool/nlink.h"
 #include "lib/tool/lutil.h"

=== modified file 'test/conntest.h'
--- test/conntest.h     2010-04-20 15:07:46 +0000
+++ test/conntest.h     2010-04-20 15:20:07 +0000
@@ -6,22 +6,7 @@
 #ifndef HIP_TEST_CONNTEST_H
 #define HIP_TEST_CONNTEST_H
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
 #include <netinet/in.h>
-#include <netinet/ip.h>
-#include <unistd.h>
-#include <netdb.h>
-#include <sys/time.h>
-#include <time.h>
-#include <sys/uio.h>
-#include "lib/core/debug.h"
-#include "lib/core/ife.h"
-
 
 int main_server(int type, in_port_t port);
 int main_client_gai(int socktype, char *peer_name,

Other related posts:

  • » [hipl-commit] [trunk] Rev 4368: Only #include required headers in conntest.c, conntest.h, conntest-server.c. - Diego Biurrun