Stop using old-style function-definitions.

This commit is contained in:
Ralf Corsepius
2008-08-25 11:19:33 +00:00
parent 9190a31d76
commit 7e19113351
7 changed files with 16 additions and 16 deletions

View File

@@ -57,8 +57,8 @@ static char sccsid[] = "@(#)closedir.c 5.9 (Berkeley) 2/23/91";
* close a directory.
*/
int
closedir(dirp)
register DIR *dirp;
closedir(
DIR *dirp )
{
int fd;

View File

@@ -73,9 +73,9 @@ static char sccsid[] = "@(#)getcwd.c 5.11 (Berkeley) 2/24/91";
#ifndef _REENT_ONLY
char *
getcwd (pt, size)
char *pt;
size_t size;
getcwd (
char *pt,
size_t size)
{
register struct dirent *dp;
register DIR *dir = 0;

View File

@@ -254,7 +254,7 @@ cleanup_and_bail:
* mount table chain.
*/
int init_fs_mount_table()
int init_fs_mount_table(void)
{
rtems_chain_initialize_empty ( &rtems_filesystem_mount_table_control );
return 0;

View File

@@ -59,7 +59,7 @@ extern struct _reent libc_global_reent __ATTRIBUTE_IMPURE_PTR__;
* Memory is also now allocated from the workspace rather than the heap.
* -- ptorre 9/30/03
*/
rtems_boolean libc_create_hook(
bool libc_create_hook(
rtems_tcb *current_task,
rtems_tcb *creating_task
)

View File

@@ -53,8 +53,8 @@ static char sccsid[] = "@(#)opendir.c 5.11 (Berkeley) 2/23/91";
* open a directory.
*/
DIR *
opendir(name)
const char *name;
opendir(
const char *name )
{
register DIR *dirp;
register int fd;

View File

@@ -57,8 +57,8 @@ int getdents(
* get next entry in a directory.
*/
struct dirent *
readdir(dirp)
register DIR *dirp; {
readdir( DIR *dirp )
{
register struct dirent *dp;
if ( !dirp )

View File

@@ -73,11 +73,11 @@ static char sccsid[] = "@(#)scandir.c 5.10 (Berkeley) 2/23/91";
((sizeof (struct dirent) - (NAME_MAX+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
int
scandir(dirname, namelist, select, dcomp)
const char *dirname;
struct dirent ***namelist;
int (*select)(struct dirent *);
int (*dcomp)(const struct dirent **, const struct dirent **);
scandir(
const char *dirname,
struct dirent ***namelist,
int (*select)(struct dirent *),
int (*dcomp)(const struct dirent **, const struct dirent **))
{
register struct dirent *d = NULL;
register struct dirent *p = NULL;