summaryrefslogtreecommitdiffhomepage
path: root/examples/sptr_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sptr_pthread.c')
-rw-r--r--examples/sptr_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sptr_pthread.c b/examples/sptr_pthread.c
index 501fdcef..d71ce97d 100644
--- a/examples/sptr_pthread.c
+++ b/examples/sptr_pthread.c
@@ -33,7 +33,7 @@ void* thr(csptr_base* lp)
int main()
{
- csptr_base p = csptr_base_new((Base){42});
+ csptr_base p = csptr_base_from((Base){42});
printf("Created a Base\n"
" p.get() = %p, p.use_count() = %ld\n", (void*)p.get, *p.use_count);