summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-04 14:53:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-04 14:53:47 +0000
commit71c012aff513e87aae6b3858d1fd3a44e1b1a14e (patch)
treeebcbbd3cd0f95d04e62b8206d571cbde55b1d026 /cpukit
parent2010-07-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-71c012aff513e87aae6b3858d1fd3a44e1b1a14e.tar.bz2
2010-07-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/include/rtems/ide_part_table.h, libblock/src/bdbuf.c, libcsupport/src/__times.c, libcsupport/src/libio_init.c, libcsupport/src/mallocfreespace.c, libcsupport/src/mount-mgr.c, libcsupport/src/mount.c, libcsupport/src/rewinddir.c, libcsupport/src/seekdir.c, libcsupport/src/telldir.c, libcsupport/src/unmount.c, libfs/src/dosfs/fat.c, libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c, libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c, libfs/src/dosfs/msdos_fsunmount.c, libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_rename.c, libmisc/cpuuse/cpuusagereport.c, libmisc/shell/vis.c, libmisc/stackchk/check.c, sapi/src/posixapi.c, telnetd/telnetd.c: Remove include of assert.h when it is not needed.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog16
-rw-r--r--cpukit/libblock/include/rtems/ide_part_table.h1
-rw-r--r--cpukit/libblock/src/bdbuf.c1
-rw-r--r--cpukit/libcsupport/src/__times.c3
-rw-r--r--cpukit/libcsupport/src/libio_init.c3
-rw-r--r--cpukit/libcsupport/src/mallocfreespace.c3
-rw-r--r--cpukit/libcsupport/src/mount-mgr.c1
-rw-r--r--cpukit/libcsupport/src/mount.c3
-rw-r--r--cpukit/libcsupport/src/rewinddir.c3
-rw-r--r--cpukit/libcsupport/src/seekdir.c3
-rw-r--r--cpukit/libcsupport/src/telldir.c8
-rw-r--r--cpukit/libcsupport/src/unmount.c3
-rw-r--r--cpukit/libfs/src/dosfs/fat.c1
-rw-r--r--cpukit/libfs/src/dosfs/fat_fat_operations.c1
-rw-r--r--cpukit/libfs/src/dosfs/msdos_create.c1
-rw-r--r--cpukit/libfs/src/dosfs/msdos_dir.c1
-rw-r--r--cpukit/libfs/src/dosfs/msdos_eval.c1
-rw-r--r--cpukit/libfs/src/dosfs/msdos_file.c1
-rw-r--r--cpukit/libfs/src/dosfs/msdos_format.c1
-rw-r--r--cpukit/libfs/src/dosfs/msdos_fsunmount.c1
-rw-r--r--cpukit/libfs/src/dosfs/msdos_initsupp.c1
-rw-r--r--cpukit/libfs/src/dosfs/msdos_rename.c1
-rw-r--r--cpukit/libmisc/cpuuse/cpuusagereport.c1
-rw-r--r--cpukit/libmisc/shell/vis.c1
-rw-r--r--cpukit/libmisc/stackchk/check.c1
-rw-r--r--cpukit/sapi/src/posixapi.c4
-rw-r--r--cpukit/telnetd/telnetd.c1
27 files changed, 27 insertions, 39 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 550e58dc16..6502b17de9 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,19 @@
+2010-07-04 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * libblock/include/rtems/ide_part_table.h, libblock/src/bdbuf.c,
+ libcsupport/src/__times.c, libcsupport/src/libio_init.c,
+ libcsupport/src/mallocfreespace.c, libcsupport/src/mount-mgr.c,
+ libcsupport/src/mount.c, libcsupport/src/rewinddir.c,
+ libcsupport/src/seekdir.c, libcsupport/src/telldir.c,
+ libcsupport/src/unmount.c, libfs/src/dosfs/fat.c,
+ libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/msdos_create.c,
+ libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c,
+ libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c,
+ libfs/src/dosfs/msdos_fsunmount.c, libfs/src/dosfs/msdos_initsupp.c,
+ libfs/src/dosfs/msdos_rename.c, libmisc/cpuuse/cpuusagereport.c,
+ libmisc/shell/vis.c, libmisc/stackchk/check.c, sapi/src/posixapi.c,
+ telnetd/telnetd.c: Remove include of assert.h when it is not needed.
+
2010-07-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/include/rtems/libio.h, libfs/src/defaults/default_read.c,
diff --git a/cpukit/libblock/include/rtems/ide_part_table.h b/cpukit/libblock/include/rtems/ide_part_table.h
index ee4dc77ca8..c6fe587e02 100644
--- a/cpukit/libblock/include/rtems/ide_part_table.h
+++ b/cpukit/libblock/include/rtems/ide_part_table.h
@@ -21,7 +21,6 @@
#ifndef _RTEMS_IDE_PART_TABLE_H
#define _RTEMS_IDE_PART_TABLE_H
-#include <assert.h>
#include <rtems/chain.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c
index ce579d3730..841c03bdbe 100644
--- a/cpukit/libblock/src/bdbuf.c
+++ b/cpukit/libblock/src/bdbuf.c
@@ -34,7 +34,6 @@
#endif
#include <limits.h>
#include <errno.h>
-#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c
index f44142bede..b9ba05dbed 100644
--- a/cpukit/libcsupport/src/__times.c
+++ b/cpukit/libcsupport/src/__times.c
@@ -1,7 +1,7 @@
/*
* times() - POSIX 1003.1b 4.5.2 - Get Process Times
*
- * COPYRIGHT (c) 1989-2009.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -21,7 +21,6 @@
#include <time.h>
#include <sys/time.h>
#include <errno.h>
-#include <assert.h>
#include <rtems/seterr.h>
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
#include <rtems/score/timestamp.h>
diff --git a/cpukit/libcsupport/src/libio_init.c b/cpukit/libcsupport/src/libio_init.c
index 0a902e2b0a..a6b99870a5 100644
--- a/cpukit/libcsupport/src/libio_init.c
+++ b/cpukit/libcsupport/src/libio_init.c
@@ -3,7 +3,7 @@
* table of integer style file descriptors used by the low level
* POSIX system calls like open(), read, fstat(), etc.
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -23,7 +23,6 @@
#include <stdio.h> /* O_RDONLY, et.al. */
#include <fcntl.h> /* O_RDONLY, et.al. */
-#include <assert.h>
#include <errno.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/mallocfreespace.c b/cpukit/libcsupport/src/mallocfreespace.c
index 9b0898c31a..cb0eb1f2ea 100644
--- a/cpukit/libcsupport/src/mallocfreespace.c
+++ b/cpukit/libcsupport/src/mallocfreespace.c
@@ -2,7 +2,7 @@
* RTEMS Malloc Get Free Information
*
*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -24,7 +24,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
-#include <assert.h>
#include <errno.h>
#include <string.h>
diff --git a/cpukit/libcsupport/src/mount-mgr.c b/cpukit/libcsupport/src/mount-mgr.c
index e2523978bb..755532aa0d 100644
--- a/cpukit/libcsupport/src/mount-mgr.c
+++ b/cpukit/libcsupport/src/mount-mgr.c
@@ -28,7 +28,6 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
-#include <assert.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c
index 29c14077e8..96720e77ab 100644
--- a/cpukit/libcsupport/src/mount.c
+++ b/cpukit/libcsupport/src/mount.c
@@ -7,7 +7,7 @@
* XXX make sure no optional ops you are using are NULL
* XXX unmount should be required.
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* Copyright (c) 2010 embedded brains GmbH.
@@ -32,7 +32,6 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
-#include <assert.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/rewinddir.c b/cpukit/libcsupport/src/rewinddir.c
index abee190c0a..329efcc102 100644
--- a/cpukit/libcsupport/src/rewinddir.c
+++ b/cpukit/libcsupport/src/rewinddir.c
@@ -1,7 +1,7 @@
/*
* rewinddir() - POSIX 1003.1b - XXX
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,7 +17,6 @@
#ifndef HAVE_REWINDDIR
#include <sys/types.h>
-#include <assert.h>
#include <dirent.h>
#include <stdio.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/seekdir.c b/cpukit/libcsupport/src/seekdir.c
index 95f4505942..390ca03ba2 100644
--- a/cpukit/libcsupport/src/seekdir.c
+++ b/cpukit/libcsupport/src/seekdir.c
@@ -1,7 +1,7 @@
/*
* seekdir() - POSIX 1003.1b - XXX
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,7 +17,6 @@
#ifndef HAVE_SEEKDIR
#include <sys/param.h>
-#include <assert.h>
#include <dirent.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/cpukit/libcsupport/src/telldir.c b/cpukit/libcsupport/src/telldir.c
index 8b6ba5dce5..05000ae552 100644
--- a/cpukit/libcsupport/src/telldir.c
+++ b/cpukit/libcsupport/src/telldir.c
@@ -1,7 +1,7 @@
/*
* telldir() - XXX
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,7 +17,6 @@
#ifndef HAVE_TELLDIR
#include <sys/param.h>
-#include <assert.h>
#include <dirent.h>
#include <stdlib.h>
#include <unistd.h>
@@ -41,9 +40,8 @@ long telldir(
*/
iop = rtems_libio_iop( dirp->dd_fd );
-
- if (iop == NULL)
- assert(0);
+ if ( !iop )
+ rtems_set_errno_and_return_minus_one( EBADF );
return (long)( iop->offset );
}
diff --git a/cpukit/libcsupport/src/unmount.c b/cpukit/libcsupport/src/unmount.c
index 1ed5c7dabd..a2c67f7098 100644
--- a/cpukit/libcsupport/src/unmount.c
+++ b/cpukit/libcsupport/src/unmount.c
@@ -6,7 +6,7 @@
* routine is necessary to mount instantiations of a file system
* into the file system name space.
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -27,7 +27,6 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
-#include <assert.h>
#include <rtems/libio_.h>
#include <rtems/seterr.h>
diff --git a/cpukit/libfs/src/dosfs/fat.c b/cpukit/libfs/src/dosfs/fat.c
index ad1dd2afe0..ba9ae23e86 100644
--- a/cpukit/libfs/src/dosfs/fat.c
+++ b/cpukit/libfs/src/dosfs/fat.c
@@ -19,7 +19,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-#include <assert.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libfs/src/dosfs/fat_fat_operations.c b/cpukit/libfs/src/dosfs/fat_fat_operations.c
index 9d677dc3db..c4f82805e8 100644
--- a/cpukit/libfs/src/dosfs/fat_fat_operations.c
+++ b/cpukit/libfs/src/dosfs/fat_fat_operations.c
@@ -19,7 +19,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-#include <assert.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libfs/src/dosfs/msdos_create.c b/cpukit/libfs/src/dosfs/msdos_create.c
index bab4a63fa8..d4fc737d95 100644
--- a/cpukit/libfs/src/dosfs/msdos_create.c
+++ b/cpukit/libfs/src/dosfs/msdos_create.c
@@ -16,7 +16,6 @@
#endif
#include <errno.h>
-#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/cpukit/libfs/src/dosfs/msdos_dir.c b/cpukit/libfs/src/dosfs/msdos_dir.c
index 9140bc7229..c1bd0c2735 100644
--- a/cpukit/libfs/src/dosfs/msdos_dir.c
+++ b/cpukit/libfs/src/dosfs/msdos_dir.c
@@ -17,7 +17,6 @@
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
-#include <assert.h>
#include <errno.h>
#include <rtems/libio_.h>
#include <sys/types.h>
diff --git a/cpukit/libfs/src/dosfs/msdos_eval.c b/cpukit/libfs/src/dosfs/msdos_eval.c
index b1776ad730..c128be8ff5 100644
--- a/cpukit/libfs/src/dosfs/msdos_eval.c
+++ b/cpukit/libfs/src/dosfs/msdos_eval.c
@@ -21,7 +21,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-#include <assert.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libfs/src/dosfs/msdos_file.c b/cpukit/libfs/src/dosfs/msdos_file.c
index 8519412984..d56e1231ec 100644
--- a/cpukit/libfs/src/dosfs/msdos_file.c
+++ b/cpukit/libfs/src/dosfs/msdos_file.c
@@ -15,7 +15,6 @@
#endif
#include <stdlib.h>
-#include <assert.h>
#include <errno.h>
#include <rtems.h>
diff --git a/cpukit/libfs/src/dosfs/msdos_format.c b/cpukit/libfs/src/dosfs/msdos_format.c
index 890fdd2e9d..71cd137f7e 100644
--- a/cpukit/libfs/src/dosfs/msdos_format.c
+++ b/cpukit/libfs/src/dosfs/msdos_format.c
@@ -33,7 +33,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
-#include <assert.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libfs/src/dosfs/msdos_fsunmount.c b/cpukit/libfs/src/dosfs/msdos_fsunmount.c
index bd978179e2..310da9c8ff 100644
--- a/cpukit/libfs/src/dosfs/msdos_fsunmount.c
+++ b/cpukit/libfs/src/dosfs/msdos_fsunmount.c
@@ -21,7 +21,6 @@
#include <stdlib.h>
#include <stdio.h>
-#include <assert.h>
#include <rtems.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libfs/src/dosfs/msdos_initsupp.c b/cpukit/libfs/src/dosfs/msdos_initsupp.c
index 72e762d081..fc10fda71a 100644
--- a/cpukit/libfs/src/dosfs/msdos_initsupp.c
+++ b/cpukit/libfs/src/dosfs/msdos_initsupp.c
@@ -21,7 +21,6 @@
#include <stdlib.h>
#include <stdio.h>
-#include <assert.h>
#include <rtems.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libfs/src/dosfs/msdos_rename.c b/cpukit/libfs/src/dosfs/msdos_rename.c
index 1ad625a251..1f5a6d9c6a 100644
--- a/cpukit/libfs/src/dosfs/msdos_rename.c
+++ b/cpukit/libfs/src/dosfs/msdos_rename.c
@@ -15,7 +15,6 @@
#endif
#include <errno.h>
-#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/cpukit/libmisc/cpuuse/cpuusagereport.c b/cpukit/libmisc/cpuuse/cpuusagereport.c
index 60bb0fdd83..81076790ba 100644
--- a/cpukit/libmisc/cpuuse/cpuusagereport.c
+++ b/cpukit/libmisc/cpuuse/cpuusagereport.c
@@ -17,7 +17,6 @@
#include <rtems.h>
-#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/cpukit/libmisc/shell/vis.c b/cpukit/libmisc/shell/vis.c
index 5d5a1c2475..6316555279 100644
--- a/cpukit/libmisc/shell/vis.c
+++ b/cpukit/libmisc/shell/vis.c
@@ -77,7 +77,6 @@ __RCSID("$NetBSD: vis.c,v 1.33 2005/05/28 13:11:14 lukem Exp $");
#include <sys/types.h>
-#include <assert.h>
#include <vis.h>
#include <stdlib.h>
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index 7b4d6d1c72..b7273cfba7 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -33,7 +33,6 @@
*/
#define DONT_USE_FATAL_EXTENSION
-#include <assert.h>
#include <string.h>
#include <stdlib.h>
diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c
index d1d1e6d0a5..37cbbae8a6 100644
--- a/cpukit/sapi/src/posixapi.c
+++ b/cpukit/sapi/src/posixapi.c
@@ -3,7 +3,7 @@
*
* NOTE:
*
- * COPYRIGHT (c) 1989-2008.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,8 +17,6 @@
#include "config.h"
#endif
-#include <assert.h>
-
/*
* POSIX_API_INIT is defined so all of the POSIX API
* data will be included in this object file.
diff --git a/cpukit/telnetd/telnetd.c b/cpukit/telnetd/telnetd.c
index 74b4b6d0fb..903b6dfb51 100644
--- a/cpukit/telnetd/telnetd.c
+++ b/cpukit/telnetd/telnetd.c
@@ -54,7 +54,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#include <assert.h>
#include <string.h>
#include <syslog.h>