[ofa-general] [PATCH TRIVIAL] opensm: make osm_node_destroy() static
Sasha Khapyorsky
sashak at voltaire.com
Sun May 6 10:44:31 PDT 2007
This makes locally used osm_node_destroy() function static
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
osm/include/opensm/osm_node.h | 28 ----------------------------
osm/opensm/osm_node.c | 2 +-
2 files changed, 1 insertions(+), 29 deletions(-)
diff --git a/osm/include/opensm/osm_node.h b/osm/include/opensm/osm_node.h
index 035ecef..a841de7 100644
--- a/osm/include/opensm/osm_node.h
+++ b/osm/include/opensm/osm_node.h
@@ -149,34 +149,6 @@ typedef struct _osm_node
* Node object
*********/
-/****f* OpenSM: Node/osm_node_destroy
-* NAME
-* osm_node_destroy
-*
-* DESCRIPTION
-* The osm_node_destroy function destroys a node, releasing
-* all resources.
-*
-* SYNOPSIS
-*/void
-osm_node_destroy(
- IN osm_node_t *p_node );
-/*
-* PARAMETERS
-* p_node
-* [in] Pointer a Node object to destroy.
-*
-* RETURN VALUE
-* This function does not return a value.
-*
-* NOTES
-* Performs any necessary cleanup of the specified Node object.
-* This function should only be called after a call to osm_node_new.
-*
-* SEE ALSO
-* Node object, osm_node_new
-*********/
-
/****f* OpenSM: Node/osm_node_delete
* NAME
* osm_node_delete
diff --git a/osm/opensm/osm_node.c b/osm/opensm/osm_node.c
index e725fd5..80a7465 100644
--- a/osm/opensm/osm_node.c
+++ b/osm/opensm/osm_node.c
@@ -143,7 +143,7 @@ osm_node_new(
/**********************************************************************
**********************************************************************/
-void
+static void
osm_node_destroy(
IN osm_node_t *p_node )
{
--
1.5.2.rc2.20.gac2a
More information about the general
mailing list