summaryrefslogtreecommitdiff
path: root/libtrivfs/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/open.c')
-rw-r--r--libtrivfs/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtrivfs/open.c b/libtrivfs/open.c
index f64d2ffd..97e70a16 100644
--- a/libtrivfs/open.c
+++ b/libtrivfs/open.c
@@ -40,7 +40,7 @@ trivfs_open (struct trivfs_control *cntl,
ports_port_ref (cntl);
- po->refcnt = 1;
+ refcount_init (&po->refcnt, 1);
po->cntl = cntl;
po->openmodes = flags;
po->hook = 0;