summaryrefslogtreecommitdiffstats
path: root/src/state.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-12 17:54:15 -0500
committerDavid Robillard <d@drobilla.net>2022-11-16 10:22:55 -0500
commitab98128551cc97e333caf714830f807bbe25bae7 (patch)
treec63f14badd247071bbe54971ef7d75e5b81bd18d /src/state.c
parentdd5e8510cb40b853a5d252084660dc38aab7c665 (diff)
downloadlilv-ab98128551cc97e333caf714830f807bbe25bae7.tar.gz
lilv-ab98128551cc97e333caf714830f807bbe25bae7.tar.bz2
lilv-ab98128551cc97e333caf714830f807bbe25bae7.zip
Use zix_file_equals()
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/state.c b/src/state.c
index 61558e9..920d067 100644
--- a/src/state.c
+++ b/src/state.c
@@ -295,7 +295,7 @@ abstract_path(LV2_State_Map_Path_Handle handle, const char* abs_path)
char* cpath = zix_path_join(NULL, state->copy_dir, path);
char* copy = lilv_get_latest_copy(real_path, cpath);
- if (!copy || !lilv_file_equals(real_path, copy)) {
+ if (!copy || !zix_file_equals(NULL, real_path, copy)) {
// No recent enough copy, make a new one
free(copy);
copy = lilv_find_free_path(cpath, path_exists, NULL);
@@ -1483,8 +1483,9 @@ lilv_state_equals(const LilvState* a, const LilvState* b)
}
if (ap->type == a->atom_Path) {
- if (!lilv_file_equals(lilv_state_rel2abs(a, (char*)ap->value),
- lilv_state_rel2abs(b, (char*)bp->value))) {
+ if (!zix_file_equals(NULL,
+ lilv_state_rel2abs(a, (char*)ap->value),
+ lilv_state_rel2abs(b, (char*)bp->value))) {
return false;
}
} else if (ap->size != bp->size || memcmp(ap->value, bp->value, ap->size)) {