summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>1999-03-31 23:24:57 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>1999-03-31 23:24:57 +0000
commitec2328eeaf7de6afe46266ee36e8f8b62af39d6c (patch)
treec43a7dc93946229ee5b86b929b310fcb6f963b56 /c
parentModified to be valid m68k code on all CPU models. (diff)
downloadrtems-ec2328eeaf7de6afe46266ee36e8f8b62af39d6c.tar.bz2
Removed asserts that shouldn't be called and commented case where this
indicates an internal error.
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/libcsupport/src/mknod.c1
-rw-r--r--c/src/exec/libfs/src/imfs/imfs_getchild.c3
-rw-r--r--c/src/exec/libfs/src/imfs/imfs_mknod.c2
-rw-r--r--c/src/lib/libc/imfs_getchild.c3
-rw-r--r--c/src/lib/libc/imfs_mknod.c2
-rw-r--r--c/src/lib/libc/mknod.c1
-rw-r--r--c/src/libfs/src/imfs/imfs_getchild.c3
-rw-r--r--c/src/libfs/src/imfs/imfs_mknod.c2
8 files changed, 6 insertions, 11 deletions
diff --git a/c/src/exec/libcsupport/src/mknod.c b/c/src/exec/libcsupport/src/mknod.c
index 4f83321ecd..97f6cb0884 100644
--- a/c/src/exec/libcsupport/src/mknod.c
+++ b/c/src/exec/libcsupport/src/mknod.c
@@ -22,7 +22,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-#include <assert.h>
#include "libio_.h"
diff --git a/c/src/exec/libfs/src/imfs/imfs_getchild.c b/c/src/exec/libfs/src/imfs/imfs_getchild.c
index 3f37738ab4..3bb710f169 100644
--- a/c/src/exec/libfs/src/imfs/imfs_getchild.c
+++ b/c/src/exec/libfs/src/imfs/imfs_getchild.c
@@ -31,7 +31,8 @@ IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *the_jnode;
/*
- * Check for fatal errors
+ * Check for fatal errors. A NULL directory show a problem in the
+ * the IMFS code.
*/
assert( directory );
diff --git a/c/src/exec/libfs/src/imfs/imfs_mknod.c b/c/src/exec/libfs/src/imfs/imfs_mknod.c
index c8c05b3a26..947fe260c1 100644
--- a/c/src/exec/libfs/src/imfs/imfs_mknod.c
+++ b/c/src/exec/libfs/src/imfs/imfs_mknod.c
@@ -20,7 +20,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-#include <assert.h>
#include "imfs.h"
#include "libio_.h"
@@ -52,7 +51,6 @@ int IMFS_mknod(
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
} else {
- assert( 0 );
set_errno_and_return_minus_one( EINVAL );
}
diff --git a/c/src/lib/libc/imfs_getchild.c b/c/src/lib/libc/imfs_getchild.c
index 3f37738ab4..3bb710f169 100644
--- a/c/src/lib/libc/imfs_getchild.c
+++ b/c/src/lib/libc/imfs_getchild.c
@@ -31,7 +31,8 @@ IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *the_jnode;
/*
- * Check for fatal errors
+ * Check for fatal errors. A NULL directory show a problem in the
+ * the IMFS code.
*/
assert( directory );
diff --git a/c/src/lib/libc/imfs_mknod.c b/c/src/lib/libc/imfs_mknod.c
index c8c05b3a26..947fe260c1 100644
--- a/c/src/lib/libc/imfs_mknod.c
+++ b/c/src/lib/libc/imfs_mknod.c
@@ -20,7 +20,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-#include <assert.h>
#include "imfs.h"
#include "libio_.h"
@@ -52,7 +51,6 @@ int IMFS_mknod(
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
} else {
- assert( 0 );
set_errno_and_return_minus_one( EINVAL );
}
diff --git a/c/src/lib/libc/mknod.c b/c/src/lib/libc/mknod.c
index 4f83321ecd..97f6cb0884 100644
--- a/c/src/lib/libc/mknod.c
+++ b/c/src/lib/libc/mknod.c
@@ -22,7 +22,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-#include <assert.h>
#include "libio_.h"
diff --git a/c/src/libfs/src/imfs/imfs_getchild.c b/c/src/libfs/src/imfs/imfs_getchild.c
index 3f37738ab4..3bb710f169 100644
--- a/c/src/libfs/src/imfs/imfs_getchild.c
+++ b/c/src/libfs/src/imfs/imfs_getchild.c
@@ -31,7 +31,8 @@ IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *the_jnode;
/*
- * Check for fatal errors
+ * Check for fatal errors. A NULL directory show a problem in the
+ * the IMFS code.
*/
assert( directory );
diff --git a/c/src/libfs/src/imfs/imfs_mknod.c b/c/src/libfs/src/imfs/imfs_mknod.c
index c8c05b3a26..947fe260c1 100644
--- a/c/src/libfs/src/imfs/imfs_mknod.c
+++ b/c/src/libfs/src/imfs/imfs_mknod.c
@@ -20,7 +20,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-#include <assert.h>
#include "imfs.h"
#include "libio_.h"
@@ -52,7 +51,6 @@ int IMFS_mknod(
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
} else {
- assert( 0 );
set_errno_and_return_minus_one( EINVAL );
}