From df3021ad78330fbee3146f106ad4a2336cf55a35 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 29 Jul 2008 09:25:11 +0000 Subject: [PATCH] Add prototypes. --- cpukit/libcsupport/include/rtems/libcsupport.h | 2 +- cpukit/libcsupport/include/rtems/libio_.h | 4 ++-- cpukit/libcsupport/src/malloc_statistics_helpers.c | 3 +-- 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 -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));