summaryrefslogtreecommitdiffstats
path: root/libdimension/pattern.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-12-24 13:19:38 -0500
committerTavian Barnes <tavianator@gmail.com>2011-12-24 13:19:38 -0500
commita8181915a4aac7a37bdd62705e2eac1067eb1904 (patch)
tree4e90ce29b5fad0d34f268e5ac9d247c3ef034a3f /libdimension/pattern.c
parentbabba43cd4d1b9c92a569f19acbe17e429193b01 (diff)
downloaddimension-a8181915a4aac7a37bdd62705e2eac1067eb1904.tar.xz
Use macros to initialize refcounts.
Diffstat (limited to 'libdimension/pattern.c')
-rw-r--r--libdimension/pattern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/pattern.c b/libdimension/pattern.c
index 6a2e286..f32671c 100644
--- a/libdimension/pattern.c
+++ b/libdimension/pattern.c
@@ -30,8 +30,8 @@ dmnsn_pattern *
dmnsn_new_pattern(void)
{
dmnsn_pattern *pattern = dmnsn_malloc(sizeof(dmnsn_pattern));
- pattern->free_fn = NULL;
- pattern->refcount = 1;
+ pattern->free_fn = NULL;
+ DMNSN_REFCOUNT_INIT(pattern);
return pattern;
}