src/dictionary.c: Move dict_ref next to dict_unref
[pspp] / src / data / dictionary.c
index 40352b0f2ba9e97708fb21c8aec422c75dddb4b7..a04fcaed447c393e5df6960e8295eef9121dbff6 100644 (file)
@@ -186,13 +186,6 @@ dict_create (const char *encoding)
   return d;
 }
 
-struct dictionary *
-dict_ref (struct dictionary *s)
-{
-  s->ref_cnt++;
-  return s;
-}
-
 /* Creates and returns a (deep) copy of an existing
    dictionary.
 
@@ -314,6 +307,13 @@ _dict_destroy (struct dictionary *d)
   free (d);
 }
 
+struct dictionary *
+dict_ref (struct dictionary *d)
+{
+  d->ref_cnt++;
+  return d;
+}
+
 void
 dict_unref (struct dictionary *d)
 {