} while (0)
#endif
\f
-static void *Dispatcher(void *);
-static void *Create_Process_Part2(void *);
-static void *Exit_LWP(void *);
+static void Dispatcher(void);
+static void Create_Process_Part2(void);
+static void Exit_LWP(void);
static afs_int32 Initialize_Stack(char *stackptr, int stacksize);
static int Stack_Used(register char *stackptr, int stacksize);
Dump_Processes();
#endif
if (LWPANCHOR.outersp == NULL)
- Exit_LWP(NULL);
+ Exit_LWP();
else
savecontext(Exit_LWP, &tempcontext, LWPANCHOR.outersp);
return;
}
-static void *
-Create_Process_Part2(void *unused)
+static void
+Create_Process_Part2(void)
{ /* creates a context for the new process */
PROCESS temp;
savecontext(Dispatcher, &temp->context, NULL);
(*temp->ep) (temp->parm);
LWP_DestroyProcess(temp);
- return 0;
+ return;
}
static int
int LWP_TraceProcesses = 0;
-static void *
-Dispatcher(void *unused)
+static void
+Dispatcher(void)
{ /* Lightweight process dispatcher */
register int i;
#ifdef DEBUG
returnto(&lwp_cpptr->context);
- return 0; /* not reachable */
+ return; /* not reachable */
}
/* Complain of a stack overflow to stderr without using stdio. */
*/
}
-static void *
-Exit_LWP(void *unused)
+static void
+Exit_LWP(void)
{
abort();
}
extern int LWP_QSignal(register PROCESS pid);
#endif
-extern afs_int32 savecontext(void *(*ep)(void *),
+extern afs_int32 savecontext(void (*ep)(void),
struct lwp_context *savearea, char *sp);
extern void returnto(struct lwp_context *savearea);
#if defined(USE_UCONTEXT) && defined(HAVE_UCONTEXT_H)
afs_int32
-savecontext(void (*ep) (void *dummy), struct lwp_context *savearea, char *newsp)
+savecontext(void (*ep) (void), struct lwp_context *savearea, char *newsp)
{
#if defined(AFS_LINUX20_ENV)
/* getcontext does not export stack info */
#endif /*SGI*/
static jmp_buf jmp_tmp;
-static char (*EP) ();
+static void *(*EP) (void);
static int rc;
static jmp_buf_type *jmpBuffer;
afs_int32
-savecontext(ep, savearea, sp)
- void (*ep) ();
- struct lwp_context *savearea;
- char *sp;
+savecontext(void (*ep)(void), struct lwp_context *savearea, char *sp)
{
int code;