summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/freenode.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2010-06-22 20:03:41 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2010-06-22 20:03:41 +0000
commite525f66b09e11427852da956424c71d784d828c6 (patch)
treeb134de04d80b384828099df538537db8b1845876 /cpukit/libcsupport/src/freenode.c
parent2010-06-22 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-e525f66b09e11427852da956424c71d784d828c6.tar.bz2
2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/include/rtems/libio_.h: Moved method to free a node from a define to an external method. * libcsupport/src/freenode.c: New file.
Diffstat (limited to 'cpukit/libcsupport/src/freenode.c')
-rw-r--r--cpukit/libcsupport/src/freenode.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/freenode.c b/cpukit/libcsupport/src/freenode.c
new file mode 100644
index 0000000000..c99db96271
--- /dev/null
+++ b/cpukit/libcsupport/src/freenode.c
@@ -0,0 +1,22 @@
+/*
+ * freenode()
+ *
+ * COPYRIGHT (c) 1989-2010.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#include <stdlib.h>
+#include <rtems/libio_.h>
+
+void rtems_filesystem_freenode( rtems_filesystem_location_info_t *_node )
+{
+ if ( _node->ops )
+ if ( _node->ops->freenod_h )
+ _node->ops->freenod_h(_node );
+}