summaryrefslogtreecommitdiff
path: root/test/test_sref_noref.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-01-25 00:36:45 +0100
committerRichard Braun <rbraun@sceen.net>2017-01-25 00:36:45 +0100
commitc204a2eacf870a05f1ccde63e4da452017b6e2f5 (patch)
tree69e99afad23e633d3053851d661264a597e9285b /test/test_sref_noref.c
parenta4746bfe8f174bf90777419a539b49914942b20d (diff)
kern/sref: implement weak references
Diffstat (limited to 'test/test_sref_noref.c')
-rw-r--r--test/test_sref_noref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_sref_noref.c b/test/test_sref_noref.c
index 0895de4b..d9fe63b8 100644
--- a/test/test_sref_noref.c
+++ b/test/test_sref_noref.c
@@ -141,7 +141,7 @@ test_run(void *arg)
panic("vm_kmem_alloc: %s", error_str(ERROR_NOMEM));
}
- sref_counter_init(&obj->ref_counter, test_obj_noref);
+ sref_counter_init(&obj->ref_counter, NULL, test_obj_noref);
printk("page allocated, 1 reference, publishing\n");