Supply prototypes where possible. This uncovered type errors with

thread entrypoints:
(lwpSelect, shutdown_sequence): Parameters didn't match thread entry
point prototype.
(lwpEntryPoint): Arguments didn't match thread entry point prototype.

Change linkage of functions without prototype declaration to static
where possible.

Remove some superflous declarations, replace others by suitable
includes.
This commit is contained in:
Markus Armbruster 2004-02-17 17:59:30 +00:00
parent 7dbb87b0e0
commit 237baffca9
108 changed files with 505 additions and 877 deletions

View file

@ -46,8 +46,8 @@ empth_init(char **ctx, int flags)
empth_t *
empth_create(int prio, void (*entry) (), int size, int flags, char *name,
char *desc, void *ud)
empth_create(int prio, void (*entry)(void *), int size, int flags,
char *name, char *desc, void *ud)
{
/* inherit flags */
if (!flags)

View file

@ -390,7 +390,7 @@ empth_init(char **ctx_ptr, int flags)
* It is also passed to the entry function...
*/
empth_t *
empth_create(int prio, void (*entry) (), int size, int flags,
empth_create(int prio, void (*entry)(void *), int size, int flags,
char *name, char *desc, void *ud)
{
loc_Thread_t *pThread = NULL;

View file

@ -57,9 +57,9 @@ static pthread_mutex_t mtx_ctxsw; /* thread in critical section */
#if 0
static void empth_setctx _PROTO((void *));
static void empth_setctx(void *);
#endif
static void empth_restorectx _PROTO(());
static void empth_restorectx();
static void *
empth_start(void *ctx)
@ -176,7 +176,7 @@ empth_init(char **ctx_ptr, int flags)
* More then that priority is not needed even in lwp threads.
*/
empth_t *
empth_create(int prio, void (*entry) (), int size, int flags,
empth_create(int prio, void (*entry)(void *), int size, int flags,
char *name, char *desc, void *ud)
{
pthread_t t;