public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] umad.{c,h}: moving stdlib.h include from C to H file
@ 2010-10-04 10:37 Yevgeny Kliteynik
       [not found] ` <4CA9AE57.5020106-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Yevgeny Kliteynik @ 2010-10-04 10:37 UTC (permalink / raw)
  To: Sasha Khapyorsky, Linux RDMA

umad.h uses size_t type, which requires stdlib.h

Signed-off-by: Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
---
 libibumad/include/infiniband/umad.h |    1 +
 libibumad/src/umad.c                |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libibumad/include/infiniband/umad.h b/libibumad/include/infiniband/umad.h
index 7ad5e4a..23abf0d 100644
--- a/libibumad/include/infiniband/umad.h
+++ b/libibumad/include/infiniband/umad.h
@@ -34,6 +34,7 @@
 #define _UMAD_H

 #include <stdint.h>
+#include <stdlib.h>

 #ifdef __cplusplus
 #  define BEGIN_C_DECLS extern "C" {
diff --git a/libibumad/src/umad.c b/libibumad/src/umad.c
index d16e750..45a9423 100644
--- a/libibumad/src/umad.c
+++ b/libibumad/src/umad.c
@@ -46,7 +46,6 @@
 #include <sys/ioctl.h>
 #include <netinet/in.h>
 #include <dirent.h>
-#include <stdlib.h>
 #include <ctype.h>

 #include "umad.h"
-- 
1.6.2.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-25 19:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-04 10:37 [PATCH] umad.{c,h}: moving stdlib.h include from C to H file Yevgeny Kliteynik
     [not found] ` <4CA9AE57.5020106-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
2010-10-25 19:19   ` Sasha Khapyorsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox