[openib-general] [PATCH] libibcm/examples/simple.c: Eliminate a couple of warnings

Hal Rosenstock halr at voltaire.com
Fri May 13 07:41:57 PDT 2005


libibcm/examples/simple.c: Eliminate a couple of warnings

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: simple.c
===================================================================
--- simple.c    (revision 2331)
+++ simple.c    (working copy)
@@ -45,6 +45,7 @@
 #include <stdint.h>
 #include <endian.h>
 #include <byteswap.h>
+#include <netinet/in.h>
 
 #include <infiniband/sa.h>
 #include <infiniband/cm.h>
@@ -63,7 +64,6 @@
        struct ib_sa_path_rec sa;
        union ibv_gid *dst;
        union ibv_gid *src;
-       int result;
 
        param.qp_type       = IBV_QPT_RC;
        param.qp_num        = 0xff00;





More information about the general mailing list