diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-04 14:53:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-04 14:53:47 +0000 |
commit | 71c012aff513e87aae6b3858d1fd3a44e1b1a14e (patch) | |
tree | ebcbbd3cd0f95d04e62b8206d571cbde55b1d026 /cpukit/libcsupport | |
parent | 2010-07-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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/libcsupport')
-rw-r--r-- | cpukit/libcsupport/src/__times.c | 3 | ||||
-rw-r--r-- | cpukit/libcsupport/src/libio_init.c | 3 | ||||
-rw-r--r-- | cpukit/libcsupport/src/mallocfreespace.c | 3 | ||||
-rw-r--r-- | cpukit/libcsupport/src/mount-mgr.c | 1 | ||||
-rw-r--r-- | cpukit/libcsupport/src/mount.c | 3 | ||||
-rw-r--r-- | cpukit/libcsupport/src/rewinddir.c | 3 | ||||
-rw-r--r-- | cpukit/libcsupport/src/seekdir.c | 3 | ||||
-rw-r--r-- | cpukit/libcsupport/src/telldir.c | 8 | ||||
-rw-r--r-- | cpukit/libcsupport/src/unmount.c | 3 |
9 files changed, 10 insertions, 20 deletions
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> |