Minor fix to pobj test programs to comply with new init function.

This commit is contained in:
Gilad Arnold 2004-12-14 20:28:18 +00:00
parent 36a0821acf
commit 3e720695a6
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ main (int argc, char **argv)
struct item *tmp, *next; struct item *tmp, *next;
int i; int i;
switch (pobj_init (NULL)) { switch (pobj_init (NULL, NULL)) {
case 0: case 0:
printf ("first-time init\n"); printf ("first-time init\n");
/* Build list. */ /* Build list. */

View file

@ -79,7 +79,7 @@ int main(int argc, char **argv) {
if (argc > 1) { if (argc > 1) {
num = atoi(argv[1]); num = atoi(argv[1]);
} }
if (pobj_init(NULL) == 0) { if (pobj_init(NULL, NULL) == 0) {
pthread_t threads[num]; pthread_t threads[num];
int ids[num]; int ids[num];
int i; int i;