diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-25 11:19:33 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-25 11:19:33 +0000 |
commit | 7e19113351a1da5cb3622489d855e0566b9a2c67 (patch) | |
tree | 0403eb4872320d615a7c95a7f8aa90ffd58e3628 /cpukit/libcsupport/src | |
parent | 2008-08-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-7e19113351a1da5cb3622489d855e0566b9a2c67.tar.bz2 |
Stop using old-style function-definitions.
Diffstat (limited to 'cpukit/libcsupport/src')
-rw-r--r-- | cpukit/libcsupport/src/closedir.c | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/getcwd.c | 6 | ||||
-rw-r--r-- | cpukit/libcsupport/src/mount.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/newlibc.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/opendir.c | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/readdir.c | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/scandir.c | 10 |
7 files changed, 16 insertions, 16 deletions
diff --git a/cpukit/libcsupport/src/closedir.c b/cpukit/libcsupport/src/closedir.c index 2204768a08..cea96c1dd4 100644 --- a/cpukit/libcsupport/src/closedir.c +++ b/cpukit/libcsupport/src/closedir.c @@ -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; diff --git a/cpukit/libcsupport/src/getcwd.c b/cpukit/libcsupport/src/getcwd.c index fdde4eea81..1838ce7830 100644 --- a/cpukit/libcsupport/src/getcwd.c +++ b/cpukit/libcsupport/src/getcwd.c @@ -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; diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c index f66778217d..cc0e3ef44c 100644 --- a/cpukit/libcsupport/src/mount.c +++ b/cpukit/libcsupport/src/mount.c @@ -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; diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c index a1ad8cf5c3..378cc255ec 100644 --- a/cpukit/libcsupport/src/newlibc.c +++ b/cpukit/libcsupport/src/newlibc.c @@ -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 ) diff --git a/cpukit/libcsupport/src/opendir.c b/cpukit/libcsupport/src/opendir.c index 98129bc294..87bcb2a17e 100644 --- a/cpukit/libcsupport/src/opendir.c +++ b/cpukit/libcsupport/src/opendir.c @@ -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; diff --git a/cpukit/libcsupport/src/readdir.c b/cpukit/libcsupport/src/readdir.c index 29f4f2526f..5ce6e4d7ec 100644 --- a/cpukit/libcsupport/src/readdir.c +++ b/cpukit/libcsupport/src/readdir.c @@ -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 ) diff --git a/cpukit/libcsupport/src/scandir.c b/cpukit/libcsupport/src/scandir.c index 7d75a4e155..827402988f 100644 --- a/cpukit/libcsupport/src/scandir.c +++ b/cpukit/libcsupport/src/scandir.c @@ -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; |