diff options
author | David Robillard <d@drobilla.net> | 2022-11-12 17:54:16 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-16 10:22:55 -0500 |
commit | 9374e4f1cafd8e48fbdcb455dc6fbdd958a52b67 (patch) | |
tree | 74a6acdf2df4ee2570786b55900291a1f06b153b /src/state.c | |
parent | ab98128551cc97e333caf714830f807bbe25bae7 (diff) | |
download | lilv-9374e4f1cafd8e48fbdcb455dc6fbdd958a52b67.tar.gz lilv-9374e4f1cafd8e48fbdcb455dc6fbdd958a52b67.tar.bz2 lilv-9374e4f1cafd8e48fbdcb455dc6fbdd958a52b67.zip |
Use zix_remove()
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c index 920d067..bf112b4 100644 --- a/src/state.c +++ b/src/state.c @@ -1305,7 +1305,7 @@ static void try_unlink(const char* state_dir, const char* path) { if (!strncmp(state_dir, path, strlen(state_dir))) { - if (zix_file_type(path) != ZIX_FILE_TYPE_NONE && lilv_remove(path)) { + if (zix_file_type(path) != ZIX_FILE_TYPE_NONE && zix_remove(path)) { LILV_ERRORF("Failed to remove %s (%s)\n", path, strerror(errno)); } } @@ -1397,7 +1397,7 @@ lilv_state_delete(LilvWorld* world, const LilvState* state) } } - if (lilv_remove(state->dir)) { + if (zix_remove(state->dir)) { LILV_ERRORF( "Failed to remove directory %s (%s)\n", state->dir, strerror(errno)); } |