Minor change to test-multilist to work with new POBJ_UPDATE macro.
This commit is contained in:
parent
58bed5beca
commit
d98c13de6d
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue