summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-12 17:54:30 -0500
committerDavid Robillard <d@drobilla.net>2022-11-16 10:22:55 -0500
commit07a05e6edbf20016836a7c47d8cb8102fbfed86b (patch)
tree58b8a82b7b07eff50c2c86cf03a63a86b0266c7a /src/util.c
parenta9323d9ccb4a1dccaf5c62bfc7db0c22c9011c61 (diff)
downloadlilv-07a05e6edbf20016836a7c47d8cb8102fbfed86b.tar.gz
lilv-07a05e6edbf20016836a7c47d8cb8102fbfed86b.tar.bz2
lilv-07a05e6edbf20016836a7c47d8cb8102fbfed86b.zip
Use zix_dir_for_each()
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index bed1a3d..e573a58 100644
--- a/src/util.c
+++ b/src/util.c
@@ -7,6 +7,7 @@
#include "lilv/lilv.h"
#include "serd/serd.h"
#include "zix/allocator.h"
+#include "zix/filesystem.h"
#include "zix/path.h"
#include <sys/stat.h>
@@ -271,7 +272,7 @@ lilv_get_latest_copy(const char* path, const char* copy_path)
LILV_ERRORF("stat(%s) (%s)\n", path, strerror(errno));
}
- lilv_dir_for_each(copy_dir, &latest, update_latest);
+ zix_dir_for_each(copy_dir, &latest, update_latest);
free(latest.pattern);
free(copy_dir);