diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-07-29 09:25:11 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-07-29 09:25:11 +0000 |
commit | df3021ad78330fbee3146f106ad4a2336cf55a35 (patch) | |
tree | 747a3fecbc9859a0df1300ef486cf414c5881886 | |
parent | 2008-07-29 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-df3021ad78330fbee3146f106ad4a2336cf55a35.tar.bz2 |
Add prototypes.
-rw-r--r-- | cpukit/libcsupport/include/rtems/libcsupport.h | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio_.h | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/malloc_statistics_helpers.c | 3 | ||||
-rw-r--r-- | cpukit/libcsupport/src/scandir.c | 6 |
4 files changed, 7 insertions, 8 deletions
diff --git a/cpukit/libcsupport/include/rtems/libcsupport.h b/cpukit/libcsupport/include/rtems/libcsupport.h index 6bd95e763f..efee7eb774 100644 --- a/cpukit/libcsupport/include/rtems/libcsupport.h +++ b/cpukit/libcsupport/include/rtems/libcsupport.h @@ -39,7 +39,7 @@ extern void malloc_walk(size_t source, size_t printf_enabled); extern void libc_init(int reentrant); extern int host_errno(void); extern void fix_syscall_errno(void); -extern size_t malloc_free_space(); +extern size_t malloc_free_space(void); /* * Prototypes required to install newlib reentrancy user extension diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h index 7fd1280e28..9036512695 100644 --- a/cpukit/libcsupport/include/rtems/libio_.h +++ b/cpukit/libcsupport/include/rtems/libio_.h @@ -246,9 +246,9 @@ int rtems_filesystem_evaluate_parent( rtems_filesystem_location_info_t *pathloc ); -void rtems_filesystem_initialize(); +void rtems_filesystem_initialize(void); -int init_fs_mount_table(); +int init_fs_mount_table(void); #ifdef __cplusplus } diff --git a/cpukit/libcsupport/src/malloc_statistics_helpers.c b/cpukit/libcsupport/src/malloc_statistics_helpers.c index 53d9bec99d..a574bfb762 100644 --- a/cpukit/libcsupport/src/malloc_statistics_helpers.c +++ b/cpukit/libcsupport/src/malloc_statistics_helpers.c @@ -23,7 +23,7 @@ #include <stdlib.h> -void rtems_malloc_statistics_initialize() +void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics @@ -73,4 +73,3 @@ rtems_malloc_statistics_functions_t rtems_malloc_statistics_helpers_table = { }; #endif - diff --git a/cpukit/libcsupport/src/scandir.c b/cpukit/libcsupport/src/scandir.c index 6cd2c12e8e..904104089a 100644 --- a/cpukit/libcsupport/src/scandir.c +++ b/cpukit/libcsupport/src/scandir.c @@ -155,9 +155,9 @@ cleanup_and_bail: * Alphabetic order comparison routine for those who want it. */ int -alphasort(d1, d2) - const void *d1; - const void *d2; +alphasort( + const void *d1, + const void *d2 ) { return(strcmp((*(struct dirent **)d1)->d_name, (*(struct dirent **)d2)->d_name)); |