Minor change to test-multilist to work with new POBJ_UPDATE macro.

This commit is contained in:
Gilad Arnold 2004-12-16 23:06:14 +00:00
parent 58bed5beca
commit d98c13de6d

View file

@ -40,8 +40,8 @@ Node *createNode(int id, int num) {
tmp->data = (char *) pobj_malloc(sizeof(char) * MAX_MSG_SIZE);
sprintf(tmp->data, "%d: This is message #%d", id, num);
tmp->next = NULL;
pobj_update(tmp);
pobj_update(tmp->data);
POBJ_UPDATE(tmp);
POBJ_UPDATE(tmp->data);
//pobj_end();
return tmp;
}
@ -61,7 +61,7 @@ void *work(void *pid) {
} else {
tail->next = tmp;
/* tail = tmp; */
pobj_update(tail);
POBJ_UPDATE(tail);
pobj_static_set_ref(&tail, tmp);
}
//pobj_end();