We should not need to prototype calloc() anymore and osi_Assert() has
been replaced with assert() apparently.
Change-Id: I3ef6178c589cabcd0637cd88c35d2276833b4590
Change-Id: I0626475f120ff9a373e0251f3c4485c052922747
Reviewed-on: http://gerrit.openafs.org/3991
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
#include <stdlib.h>
#else
#include <sys/time.h>
-extern char *calloc();
#endif
#include <stdio.h>
#include <stdlib.h>
#include "lwp.h"
#include "lock.h"
#include "preempt.h"
-#include <afs/afs_assert.h>
#define DEFAULT_READERS 5
if (empty(q)) {
printf("Remove from empty queue");
- osi_Assert(0);
+ exit(0);
}
old = q->next;
int asleep; /* Number of processes sleeping -- used for
* clean termination */
-static int
-read_process(int *id)
+static void *
+read_process(void *arg)
{
+ int *id = (int *) arg;
printf("\t[Reader %d]\n", *id);
LWP_DispatchProcess(); /* Just relinquish control for now */
return 0;
}
-static int
-write_process()
+static void *
+write_process(void *dummy)
{
static char *messages[] = {
"Mary had a little lamb,",