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. * close a directory.
*/ */
int int
closedir(dirp) closedir(
register DIR *dirp; DIR *dirp )
{ {
int fd; int fd;

View File

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

View File

@@ -254,7 +254,7 @@ cleanup_and_bail:
* mount table chain. * mount table chain.
*/ */
int init_fs_mount_table() int init_fs_mount_table(void)
{ {
rtems_chain_initialize_empty ( &rtems_filesystem_mount_table_control ); rtems_chain_initialize_empty ( &rtems_filesystem_mount_table_control );
return 0; 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. * Memory is also now allocated from the workspace rather than the heap.
* -- ptorre 9/30/03 * -- ptorre 9/30/03
*/ */
rtems_boolean libc_create_hook( bool libc_create_hook(
rtems_tcb *current_task, rtems_tcb *current_task,
rtems_tcb *creating_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. * open a directory.
*/ */
DIR * DIR *
opendir(name) opendir(
const char *name; const char *name )
{ {
register DIR *dirp; register DIR *dirp;
register int fd; register int fd;

View File

@@ -57,8 +57,8 @@ int getdents(
* get next entry in a directory. * get next entry in a directory.
*/ */
struct dirent * struct dirent *
readdir(dirp) readdir( DIR *dirp )
register DIR *dirp; { {
register struct dirent *dp; register struct dirent *dp;
if ( !dirp ) 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)) ((sizeof (struct dirent) - (NAME_MAX+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
int int
scandir(dirname, namelist, select, dcomp) scandir(
const char *dirname; const char *dirname,
struct dirent ***namelist; struct dirent ***namelist,
int (*select)(struct dirent *); int (*select)(struct dirent *),
int (*dcomp)(const struct dirent **, const struct dirent **); int (*dcomp)(const struct dirent **, const struct dirent **))
{ {
register struct dirent *d = NULL; register struct dirent *d = NULL;
register struct dirent *p = NULL; register struct dirent *p = NULL;