summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_getchild.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-24 21:31:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-24 21:31:22 +0000
commit983bfad2108c3cdd9f100c6f0d1cde00343056dc (patch)
tree131d133d84dc68a06f542b822d22a918533616c2 /cpukit/libfs/src/imfs/imfs_getchild.c
parent2010-06-24 Gedare Bloom <giddyup44@yahoo.com> (diff)
downloadrtems-983bfad2108c3cdd9f100c6f0d1cde00343056dc.tar.bz2
2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_debug.c, libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_fsunmount.c, libfs/src/imfs/imfs_getchild.c, libfs/src/imfs/imfs_initsupp.c, libfs/src/imfs/ioman.c, libfs/src/imfs/memfile.c: Evaluate all assert calls in IMFS. Either made them conditional on RTEMS_DEBUG or eliminated them.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_getchild.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_getchild.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_getchild.c b/cpukit/libfs/src/imfs/imfs_getchild.c
index 2b47ba2714..dc66e55102 100644
--- a/cpukit/libfs/src/imfs/imfs_getchild.c
+++ b/cpukit/libfs/src/imfs/imfs_getchild.c
@@ -17,8 +17,10 @@
#include "config.h"
#endif
+#if defined(RTEMS_DEBUG)
+ #include <assert.h>
+#endif
#include <errno.h>
-#include <assert.h>
#include <string.h>
#include "imfs.h"
@@ -39,11 +41,13 @@ IMFS_jnode_t *IMFS_find_match_in_dir(
* the IMFS code.
*/
- assert( directory );
+ #if defined(RTEMS_DEBUG)
+ assert( directory );
+ assert( name );
+ #endif
if ( !name )
return 0;
- assert( name );
if ( !directory )
return 0;