]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
Added mopend() func for MFT compatibility
authorOren Kladnitsky <orenk@dev.mellanox.co.il>
Thu, 14 Mar 2013 07:56:20 +0000 (09:56 +0200)
committerOren Kladnitsky <orenk@dev.mellanox.co.il>
Thu, 14 Mar 2013 07:56:20 +0000 (09:56 +0200)
mtcr.h

diff --git a/mtcr.h b/mtcr.h
index 1fa2f0a6460a011d7af61a08cbcc228285e67e8d..91916fd8fe39e67bf580208a22f354389e44b800 100644 (file)
--- a/mtcr.h
+++ b/mtcr.h
@@ -1012,6 +1012,18 @@ open_failed:
 }
 #endif
 
+mfile *mopend(const char *name, int type)
+#ifdef MTCR_EXPORT
+        ;
+#else
+{
+       if (type != 1) {
+               return NULL;
+       }
+       return mopen(name);
+}
+#endif
+
 /*
  * Close Mellanox driver
  * req. descriptor