summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-25 11:03:14 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-25 11:03:14 +0000
commit347a3feee3d065fa361a6b2cbc3301df04e314fb (patch)
treed77a40eff1295265355bc843a7a547116bb4f12d
parent2008-08-24 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-347a3feee3d065fa361a6b2cbc3301df04e314fb.tar.bz2
Stop using old-style function-definitions.
-rw-r--r--cpukit/libmisc/capture/capture.c14
-rw-r--r--cpukit/libmisc/shell/fts.c100
2 files changed, 57 insertions, 57 deletions
diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c
index 24af08c5e0..5086ae2fec 100644
--- a/cpukit/libmisc/capture/capture.c
+++ b/cpukit/libmisc/capture/capture.c
@@ -1074,7 +1074,7 @@ rtems_capture_open (uint32_t size, rtems_capture_timestamp timestamp)
* resources.
*/
rtems_status_code
-rtems_capture_close ()
+rtems_capture_close (void)
{
rtems_interrupt_level level;
rtems_capture_task_t* task;
@@ -1413,7 +1413,7 @@ rtems_capture_watch_global (rtems_boolean enable)
* This function returns the global watch state.
*/
rtems_boolean
-rtems_capture_watch_global_on ()
+rtems_capture_watch_global_on (void)
{
return capture_flags & RTEMS_CAPTURE_GLOBAL_WATCH ? 1 : 0;
}
@@ -1443,7 +1443,7 @@ rtems_capture_watch_ceiling (rtems_task_priority ceiling)
* This function gets the watch ceiling.
*/
rtems_task_priority
-rtems_capture_watch_get_ceiling ()
+rtems_capture_watch_get_ceiling (void)
{
return capture_ceiling;
}
@@ -1473,7 +1473,7 @@ rtems_capture_watch_floor (rtems_task_priority floor)
* This function gets the watch floor.
*/
rtems_task_priority
-rtems_capture_watch_get_floor ()
+rtems_capture_watch_get_floor (void)
{
return capture_floor;
}
@@ -1857,7 +1857,7 @@ rtems_capture_release (uint32_t count)
* This function returns the tick period in nano-seconds.
*/
uint32_t
-rtems_capture_tick_time ()
+rtems_capture_tick_time (void)
{
return capture_tick_period;
}
@@ -1888,7 +1888,7 @@ rtems_capture_event_text (int event)
* capture engine has detected.
*/
rtems_capture_task_t*
-rtems_capture_get_task_list ()
+rtems_capture_get_task_list (void)
{
return capture_tasks;
}
@@ -1938,7 +1938,7 @@ rtems_capture_task_stack_usage (rtems_capture_task_t* task)
* capture engine.
*/
rtems_capture_control_t*
-rtems_capture_get_control_list ()
+rtems_capture_get_control_list (void)
{
return capture_controls;
}
diff --git a/cpukit/libmisc/shell/fts.c b/cpukit/libmisc/shell/fts.c
index 7347869c02..ebc76bd66b 100644
--- a/cpukit/libmisc/shell/fts.c
+++ b/cpukit/libmisc/shell/fts.c
@@ -98,10 +98,10 @@ static int fts_safe_changedir __P((const FTS *, const FTSENT *, int,
#endif
FTS *
-fts_open(argv, options, compar)
- char * const *argv;
- int options;
- int (*compar) __P((const FTSENT **, const FTSENT **));
+fts_open(
+ char * const *argv,
+ int options,
+ int (*compar) (const FTSENT **, const FTSENT **) )
{
FTS *sp;
FTSENT *p, *root;
@@ -215,9 +215,9 @@ mem1: free(sp);
}
static void
-fts_load(sp, p)
- FTS *sp;
- FTSENT *p;
+fts_load(
+ FTS *sp,
+ FTSENT *p)
{
size_t len;
char *cp;
@@ -244,8 +244,8 @@ fts_load(sp, p)
}
int
-fts_close(sp)
- FTS *sp;
+fts_close(
+ FTS *sp)
{
FTSENT *freep, *p;
int saved_errno = 0;
@@ -303,8 +303,8 @@ fts_close(sp)
? p->fts_pathlen - 1 : p->fts_pathlen)
FTSENT *
-fts_read(sp)
- FTS *sp;
+fts_read(
+ FTS *sp )
{
FTSENT *p, *tmp;
int instr;
@@ -506,10 +506,10 @@ name: t = sp->fts_path + NAPPEND(p->fts_parent);
*/
/* ARGSUSED */
int
-fts_set(sp, p, instr)
- FTS *sp;
- FTSENT *p;
- int instr;
+fts_set(
+ FTS *sp,
+ FTSENT *p,
+ int instr)
{
_DIAGASSERT(sp != NULL);
@@ -525,9 +525,9 @@ fts_set(sp, p, instr)
}
FTSENT *
-fts_children(sp, instr)
- FTS *sp;
- int instr;
+fts_children(
+ FTS *sp,
+ int instr )
{
FTSENT *p;
int fd;
@@ -611,9 +611,9 @@ fts_children(sp, instr)
* been found, cutting the stat calls by about 2/3.
*/
static FTSENT *
-fts_build(sp, type)
- FTS *sp;
- int type;
+fts_build(
+ FTS *sp,
+ int type)
{
struct dirent *dp;
FTSENT *p, *head;
@@ -860,10 +860,10 @@ mem1: saved_errno = errno;
}
static u_short
-fts_stat(sp, p, follow)
- FTS *sp;
- FTSENT *p;
- int follow;
+fts_stat(
+ FTS *sp,
+ FTSENT *p,
+ int follow )
{
FTSENT *t;
dev_t dev;
@@ -946,10 +946,10 @@ err: memset(sbp, 0, sizeof(*sbp));
}
static FTSENT *
-fts_sort(sp, head, nitems)
- FTS *sp;
- FTSENT *head;
- size_t nitems;
+fts_sort(
+ FTS *sp,
+ FTSENT *head,
+ size_t nitems )
{
FTSENT **ap, *p;
@@ -983,10 +983,10 @@ fts_sort(sp, head, nitems)
}
static FTSENT *
-fts_alloc(sp, name, namelen)
- FTS *sp;
- const char *name;
- size_t namelen;
+fts_alloc(
+ FTS *sp,
+ const char *name,
+ size_t namelen )
{
FTSENT *p;
size_t len;
@@ -1037,8 +1037,8 @@ fts_alloc(sp, name, namelen)
}
static void
-fts_lfree(head)
- FTSENT *head;
+fts_lfree(
+ FTSENT *head )
{
FTSENT *p;
@@ -1057,8 +1057,8 @@ fts_lfree(head)
}
static size_t
-fts_pow2(x)
- size_t x;
+fts_pow2(
+ size_t x )
{
x--;
@@ -1084,9 +1084,9 @@ fts_pow2(x)
* so we don't realloc the path 2 bytes at a time.
*/
static int
-fts_palloc(sp, size)
- FTS *sp;
- size_t size;
+fts_palloc(
+ FTS *sp,
+ size_t size )
{
char *new;
@@ -1113,9 +1113,9 @@ fts_palloc(sp, size)
* already returned.
*/
static void
-fts_padjust(sp, head)
- FTS *sp;
- FTSENT *head;
+fts_padjust(
+ FTS *sp,
+ FTSENT *head )
{
FTSENT *p;
char *addr;
@@ -1143,8 +1143,8 @@ fts_padjust(sp, head)
}
static size_t
-fts_maxarglen(argv)
- char * const *argv;
+fts_maxarglen(
+ char * const *argv )
{
size_t len, max;
@@ -1162,11 +1162,11 @@ fts_maxarglen(argv)
* Assumes p->fts_dev and p->fts_ino are filled in.
*/
static int
-fts_safe_changedir(sp, p, fd, path)
- const FTS *sp;
- const FTSENT *p;
- int fd;
- const char *path;
+fts_safe_changedir(
+ const FTS *sp,
+ const FTSENT *p,
+ int fd,
+ const char *path)
{
int oldfd = fd, ret = -1;
__fts_stat_t sb;