[ofa-general] [PATCH] libibmad: remove not needed header files inclusion
Sasha Khapyorsky
sashak at voltaire.com
Wed Dec 31 09:02:44 PST 2008
Remove not needed header files inclusions - mostly sys/time.h and
pthread.h.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
libibmad/src/gs.c | 2 --
libibmad/src/mad.c | 3 +--
libibmad/src/portid.c | 2 --
libibmad/src/register.c | 2 --
libibmad/src/resolve.c | 2 --
libibmad/src/rpc.c | 1 -
libibmad/src/sa.c | 2 --
libibmad/src/serv.c | 2 --
libibmad/src/smp.c | 2 --
libibmad/src/vendor.c | 2 --
10 files changed, 1 insertions(+), 19 deletions(-)
diff --git a/libibmad/src/gs.c b/libibmad/src/gs.c
index 89c927e..d350c0d 100644
--- a/libibmad/src/gs.c
+++ b/libibmad/src/gs.c
@@ -39,8 +39,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
-#include <pthread.h>
-#include <sys/time.h>
#include <infiniband/umad.h>
#include "mad.h"
diff --git a/libibmad/src/mad.c b/libibmad/src/mad.c
index f0fffcd..be27c09 100644
--- a/libibmad/src/mad.c
+++ b/libibmad/src/mad.c
@@ -39,8 +39,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
-#include <pthread.h>
-#include <sys/time.h>
+#include <time.h>
#include <infiniband/umad.h>
#include <mad.h>
diff --git a/libibmad/src/portid.c b/libibmad/src/portid.c
index a84baee..61e6be0 100644
--- a/libibmad/src/portid.c
+++ b/libibmad/src/portid.c
@@ -38,8 +38,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <pthread.h>
-#include <sys/time.h>
#include <string.h>
#include <inttypes.h>
#include <arpa/inet.h>
diff --git a/libibmad/src/register.c b/libibmad/src/register.c
index a33acd8..045f840 100644
--- a/libibmad/src/register.c
+++ b/libibmad/src/register.c
@@ -38,8 +38,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <pthread.h>
-#include <sys/time.h>
#include <string.h>
#include <errno.h>
diff --git a/libibmad/src/resolve.c b/libibmad/src/resolve.c
index f012543..906b28d 100644
--- a/libibmad/src/resolve.c
+++ b/libibmad/src/resolve.c
@@ -38,9 +38,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <pthread.h>
#include <string.h>
-#include <sys/time.h>
#include <infiniband/umad.h>
#include <mad.h>
diff --git a/libibmad/src/rpc.c b/libibmad/src/rpc.c
index df28f65..5226540 100644
--- a/libibmad/src/rpc.c
+++ b/libibmad/src/rpc.c
@@ -39,7 +39,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
-#include <sys/time.h>
#include <string.h>
#include <errno.h>
diff --git a/libibmad/src/sa.c b/libibmad/src/sa.c
index 192f56e..27b9d52 100644
--- a/libibmad/src/sa.c
+++ b/libibmad/src/sa.c
@@ -38,9 +38,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <pthread.h>
#include <string.h>
-#include <sys/time.h>
#include <mad.h>
diff --git a/libibmad/src/serv.c b/libibmad/src/serv.c
index a90e961..b329352 100644
--- a/libibmad/src/serv.c
+++ b/libibmad/src/serv.c
@@ -38,8 +38,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <pthread.h>
-#include <sys/time.h>
#include <string.h>
#include <netinet/in.h>
diff --git a/libibmad/src/smp.c b/libibmad/src/smp.c
index d190af0..ad6b066 100644
--- a/libibmad/src/smp.c
+++ b/libibmad/src/smp.c
@@ -39,8 +39,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
-#include <pthread.h>
-#include <sys/time.h>
#include <mad.h>
diff --git a/libibmad/src/vendor.c b/libibmad/src/vendor.c
index 04e7641..eb703f6 100644
--- a/libibmad/src/vendor.c
+++ b/libibmad/src/vendor.c
@@ -39,8 +39,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
-#include <pthread.h>
-#include <sys/time.h>
#include <mad.h>
--
1.6.0.4.766.g6fc4a
More information about the general
mailing list