Make sync() POSIX-compliant.

This commit is contained in:
Ralf Corsepius
2007-12-21 05:10:09 +00:00
parent 468cd3736c
commit fbb5097c1b

View File

@@ -70,7 +70,7 @@ static void sync_per_thread(Thread_Control *t)
} }
} }
int sync(void) void sync(void)
{ {
extern struct _reent libc_global_reent; extern struct _reent libc_global_reent;
@@ -88,6 +88,4 @@ int sync(void)
* Now walk all the per-thread reentrancy structures. * Now walk all the per-thread reentrancy structures.
*/ */
rtems_iterate_over_all_threads(sync_per_thread); rtems_iterate_over_all_threads(sync_per_thread);
return 0;
} }