diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 13:35:32 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 13:35:32 +0000 |
commit | 18daff9b95bbe4d5004a99079207a5343760ecd3 (patch) | |
tree | b964869a341cda8ab268ae3643ea9be3ed1a78f4 /cpukit/libcsupport | |
parent | Whitespace removal. (diff) | |
download | rtems-18daff9b95bbe4d5004a99079207a5343760ecd3.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'cpukit/libcsupport')
22 files changed, 41 insertions, 41 deletions
diff --git a/cpukit/libcsupport/src/__assert.c b/cpukit/libcsupport/src/__assert.c index 3d4af56e53..0e90b604c6 100644 --- a/cpukit/libcsupport/src/__assert.c +++ b/cpukit/libcsupport/src/__assert.c @@ -1,4 +1,4 @@ -/* __assert - small RTEMS Specific Implementation +/* __assert - small RTEMS Specific Implementation * * COPYRIGHT (c) 2007. * On-Line Applications Research Corporation (OAR). @@ -19,7 +19,7 @@ #if defined(RTEMS_NEWLIB) && !defined(HAVE___ASSERT_FUNC) /* - * Newlib 1.16.0 added this method. Together these provide an + * Newlib 1.16.0 added this method. Together these provide an * RTEMS safe, low memory implementation. */ void __assert_func( diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c index c58e4cdcef..44a1a8a23d 100644 --- a/cpukit/libcsupport/src/__times.c +++ b/cpukit/libcsupport/src/__times.c @@ -56,8 +56,8 @@ clock_t _times( Timestamp_Control per_tick; uint32_t ticks; uint32_t fractional_ticks; - - _Timestamp_Set( + + _Timestamp_Set( &per_tick, rtems_configuration_get_microseconds_per_tick() / TOD_MICROSECONDS_PER_SECOND, diff --git a/cpukit/libcsupport/src/free.c b/cpukit/libcsupport/src/free.c index aa7638e759..c4725a5df7 100644 --- a/cpukit/libcsupport/src/free.c +++ b/cpukit/libcsupport/src/free.c @@ -36,7 +36,7 @@ void free( * Do not attempt to free memory if in a critical section or ISR. */ - if ( _System_state_Is_up(_System_state_Get()) && + if ( _System_state_Is_up(_System_state_Get()) && !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); return; diff --git a/cpukit/libcsupport/src/libio.c b/cpukit/libcsupport/src/libio.c index d2fa1da238..6ae05e18a6 100644 --- a/cpukit/libcsupport/src/libio.c +++ b/cpukit/libcsupport/src/libio.c @@ -26,9 +26,9 @@ #include <assert.h> #include <errno.h> -/* define this to alias O_NDELAY to O_NONBLOCK, i.e., +/* define this to alias O_NDELAY to O_NONBLOCK, i.e., * O_NDELAY is accepted on input but fcntl(F_GETFL) returns - * O_NONBLOCK. This is because rtems has no distinction + * O_NONBLOCK. This is because rtems has no distinction * between the two (but some systems have). * Note that accepting this alias creates a problem: * an application trying to clear the non-blocking flag @@ -165,7 +165,7 @@ rtems_libio_t *rtems_libio_allocate( void ) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; - (void) memset( iop, 0, sizeof(rtems_libio_t) ); + (void) memset( iop, 0, sizeof(rtems_libio_t) ); iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; rtems_libio_iop_freelist = next; diff --git a/cpukit/libcsupport/src/malloc.c b/cpukit/libcsupport/src/malloc.c index 8338e06fb3..ba5c8c0dcf 100644 --- a/cpukit/libcsupport/src/malloc.c +++ b/cpukit/libcsupport/src/malloc.c @@ -73,7 +73,7 @@ void *malloc( return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { - if (rtems_malloc_sbrk_helpers) + if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { errno = ENOMEM; diff --git a/cpukit/libcsupport/src/malloc_get_statistics.c b/cpukit/libcsupport/src/malloc_get_statistics.c index b0531d6244..c13a1555e8 100644 --- a/cpukit/libcsupport/src/malloc_get_statistics.c +++ b/cpukit/libcsupport/src/malloc_get_statistics.c @@ -20,7 +20,7 @@ int malloc_get_statistics( rtems_malloc_statistics_t *stats -) +) { if ( !stats ) return -1; diff --git a/cpukit/libcsupport/src/malloc_initialize.c b/cpukit/libcsupport/src/malloc_initialize.c index 913daf1a27..cec40f0df1 100644 --- a/cpukit/libcsupport/src/malloc_initialize.c +++ b/cpukit/libcsupport/src/malloc_initialize.c @@ -83,7 +83,7 @@ void RTEMS_Malloc_Initialize( * be very very careful about destroying the initialization * that has already been done. */ - + /* * If the BSP is not clearing out the workspace, then it is most likely * not clearing out the initial memory for the heap. There is no @@ -109,7 +109,7 @@ void RTEMS_Malloc_Initialize( */ if ( !rtems_unified_work_area ) { - uintptr_t status = _Protected_heap_Initialize( + uintptr_t status = _Protected_heap_Initialize( RTEMS_Malloc_Heap, heap_begin, heap_size, diff --git a/cpukit/libcsupport/src/newlibc_exit.c b/cpukit/libcsupport/src/newlibc_exit.c index 2669fc7f48..818ba884f4 100644 --- a/cpukit/libcsupport/src/newlibc_exit.c +++ b/cpukit/libcsupport/src/newlibc_exit.c @@ -131,14 +131,14 @@ void libc_wrapup(void) #else #define FINI_SYMBOL _fini #endif - + extern void FINI_SYMBOL( void ); #endif void EXIT_SYMBOL(int status) { /* - * If the toolset uses init/fini sections, then we need to + * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) diff --git a/cpukit/libcsupport/src/newlibc_init.c b/cpukit/libcsupport/src/newlibc_init.c index dbf9544fd5..4d2cef5405 100644 --- a/cpukit/libcsupport/src/newlibc_init.c +++ b/cpukit/libcsupport/src/newlibc_init.c @@ -21,7 +21,7 @@ /* * Init libc for CYGNUS newlib - * + * * Set up _REENT to use our global libc_global_reent. * (newlib provides a global of its own, but we prefer our own name for it) * diff --git a/cpukit/libcsupport/src/open_dev_console.c b/cpukit/libcsupport/src/open_dev_console.c index 3247bf3d36..ce01a9276e 100644 --- a/cpukit/libcsupport/src/open_dev_console.c +++ b/cpukit/libcsupport/src/open_dev_console.c @@ -36,7 +36,7 @@ void open_dev_console(void) * There may not be a console driver so this is OK. */ return; - } + } /* * But if we find /dev/console once, we better find it twice more diff --git a/cpukit/libcsupport/src/printk_plugin.c b/cpukit/libcsupport/src/printk_plugin.c index ebb677a1b6..60d93a96af 100644 --- a/cpukit/libcsupport/src/printk_plugin.c +++ b/cpukit/libcsupport/src/printk_plugin.c @@ -16,7 +16,7 @@ #include <stdarg.h> #include <rtems/bspIo.h> -int printk_plugin( +int printk_plugin( void *ignored __attribute__((unused)), const char *format, ... @@ -29,6 +29,6 @@ int printk_plugin( vprintk( format, arg_pointer ); va_end(arg_pointer); /* clean up when done */ - + return 0; } diff --git a/cpukit/libcsupport/src/putk.c b/cpukit/libcsupport/src/putk.c index 78d9f2abaf..71ccc9931e 100644 --- a/cpukit/libcsupport/src/putk.c +++ b/cpukit/libcsupport/src/putk.c @@ -20,7 +20,7 @@ * * Kernel putk (e.g. puts) function requiring minimal infrastrure. */ -void putk(const char *s) +void putk(const char *s) { const char *p = s; diff --git a/cpukit/libcsupport/src/readv.c b/cpukit/libcsupport/src/readv.c index 7b77c11fe2..85498b4cbc 100644 --- a/cpukit/libcsupport/src/readv.c +++ b/cpukit/libcsupport/src/readv.c @@ -59,7 +59,7 @@ ssize_t readv( /* * OpenGroup says that you are supposed to return EINVAL if the - * sum of the iov_len values in the iov array would overflow a + * sum of the iov_len values in the iov array would overflow a * ssize_t. * * Also we would like to ensure that no IO is performed if there @@ -95,7 +95,7 @@ ssize_t readv( if ( all_zeros == true ) { return 0; } - + /* * Now process the readv(). */ diff --git a/cpukit/libcsupport/src/rmdir.c b/cpukit/libcsupport/src/rmdir.c index ca0129fd3b..b66837e115 100644 --- a/cpukit/libcsupport/src/rmdir.c +++ b/cpukit/libcsupport/src/rmdir.c @@ -34,7 +34,7 @@ int rmdir( rtems_filesystem_location_info_t loc; int i; int result; - + /* * Get the parent node of the node we wish to remove. Find the parent path. */ @@ -55,11 +55,11 @@ int rmdir( /* * Start from the parent to find the node that should be under it. */ - + loc = parentloc; name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); - + result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { diff --git a/cpukit/libcsupport/src/rtems_memalign.c b/cpukit/libcsupport/src/rtems_memalign.c index 563f23cd4c..467f270b75 100644 --- a/cpukit/libcsupport/src/rtems_memalign.c +++ b/cpukit/libcsupport/src/rtems_memalign.c @@ -40,7 +40,7 @@ int rtems_memalign( /* * Do not attempt to allocate memory if not in correct system state. */ - if ( _System_state_Is_up(_System_state_Get()) && + if ( _System_state_Is_up(_System_state_Get()) && !malloc_is_system_state_OK() ) return EINVAL; @@ -85,7 +85,7 @@ int rtems_memalign( (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif - *pointer = return_this; + *pointer = return_this; return 0; } #endif diff --git a/cpukit/libcsupport/src/scandir.c b/cpukit/libcsupport/src/scandir.c index a111dea5c4..59ad02a280 100644 --- a/cpukit/libcsupport/src/scandir.c +++ b/cpukit/libcsupport/src/scandir.c @@ -134,7 +134,7 @@ scandir( } closedir(dirp); if (nitems && dcomp != NULL){ - qsort(names, nitems, sizeof(struct dirent *), + qsort(names, nitems, sizeof(struct dirent *), (int (*)(const void *, const void *)) dcomp); } *namelist = names; diff --git a/cpukit/libcsupport/src/statvfs.c b/cpukit/libcsupport/src/statvfs.c index bd6827fe76..7815118d6f 100644 --- a/cpukit/libcsupport/src/statvfs.c +++ b/cpukit/libcsupport/src/statvfs.c @@ -51,9 +51,9 @@ statvfs (const char *path, struct statvfs *sb) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); - + result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); - + rtems_filesystem_freenode( &loc ); return result; diff --git a/cpukit/libcsupport/src/tcflow.c b/cpukit/libcsupport/src/tcflow.c index cfce0fd8e1..b329224b45 100644 --- a/cpukit/libcsupport/src/tcflow.c +++ b/cpukit/libcsupport/src/tcflow.c @@ -20,7 +20,7 @@ #include <unistd.h> int tcflow ( - int fd __attribute__((unused)), + int fd __attribute__((unused)), int action __attribute__((unused))) { return 0; diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c index 6898f4493d..373ba4dc53 100644 --- a/cpukit/libcsupport/src/termios.c +++ b/cpukit/libcsupport/src/termios.c @@ -1021,7 +1021,7 @@ fillBufferQueue (struct rtems_termios_tty *tty) /* * Process characters read from raw queue */ - while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && + while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; diff --git a/cpukit/libcsupport/src/termios_setinitialbaud.c b/cpukit/libcsupport/src/termios_setinitialbaud.c index ae54dbb6ab..0eb273f355 100644 --- a/cpukit/libcsupport/src/termios_setinitialbaud.c +++ b/cpukit/libcsupport/src/termios_setinitialbaud.c @@ -24,6 +24,6 @@ int rtems_termios_set_initial_baud( return -1; ttyp->termios.c_cflag = (ttyp->termios.c_cflag & ~CBAUD) | cflags_baud; - + return 0; } diff --git a/cpukit/libcsupport/src/unlink.c b/cpukit/libcsupport/src/unlink.c index 29096d3e6f..359e64b4bc 100644 --- a/cpukit/libcsupport/src/unlink.c +++ b/cpukit/libcsupport/src/unlink.c @@ -34,9 +34,9 @@ int unlink( /* * Get the node to be unlinked. Find the parent path first. */ - + parentpathlen = rtems_filesystem_dirname ( path ); - + if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); else { @@ -47,22 +47,22 @@ int unlink( if ( result != 0 ) return -1; } - + /* * Start from the parent to find the node that should be under it. */ - + loc = parentloc; name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); - + result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { rtems_filesystem_freenode( &parentloc ); return -1; } - + if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); rtems_filesystem_freenode( &parentloc ); diff --git a/cpukit/libcsupport/src/writev.c b/cpukit/libcsupport/src/writev.c index 88d495da56..a453209d87 100644 --- a/cpukit/libcsupport/src/writev.c +++ b/cpukit/libcsupport/src/writev.c @@ -60,7 +60,7 @@ ssize_t writev( /* * OpenGroup says that you are supposed to return EINVAL if the - * sum of the iov_len values in the iov array would overflow a + * sum of the iov_len values in the iov array would overflow a * ssize_t. * * Also we would like to ensure that no IO is performed if there @@ -84,7 +84,7 @@ ssize_t writev( if ( iov[v].iov_len ) all_zeros = false; - + /* check for wrap */ old = total; total += iov[v].iov_len; @@ -98,7 +98,7 @@ ssize_t writev( if ( all_zeros == true ) { return 0; } - + /* * Now process the writev(). */ |