diff options
Diffstat (limited to 'libports/create-internal.c')
-rw-r--r-- | libports/create-internal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libports/create-internal.c b/libports/create-internal.c index 8543986b..2d85931c 100644 --- a/libports/create-internal.c +++ b/libports/create-internal.c @@ -54,8 +54,7 @@ _ports_create_port_internal (struct port_class *class, } pi->class = class; - pi->refcnt = 1; - pi->weakrefcnt = 0; + refcounts_init (&pi->refcounts, 1, 0); pi->cancel_threshold = 0; pi->mscount = 0; pi->flags = 0; |