rename heim_serialize to heim_copy_serialize to follow create/copy/get semantics

This commit is contained in:
Love Hornquist Astrand
2013-05-30 18:28:37 -07:00
parent 2433496ea6
commit b301e47fb8
4 changed files with 6 additions and 6 deletions

View File

@@ -599,7 +599,7 @@ heim_db_commit(heim_db_t db, heim_error_t *error)
heim_release(a);
goto err;
}
journal_contents = heim_serialize(a, 0, error);
journal_contents = heim_copy_serialize(a, 0, error);
heim_release(a);
/* Write replay log */
@@ -1491,7 +1491,7 @@ json_db_sync(void *db, heim_error_t *error)
heim_assert(jsondb->fd > -1, "DB not locked when sync attempted");
json = heim_serialize(jsondb->dict, 0, &e);
json = heim_copy_serialize(jsondb->dict, 0, &e);
if (json == NULL) {
if (error)
*error = e;