diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-03-06 22:33:05 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-03-06 22:45:10 +0200 |
commit | 826bb71c57d903f760c89406f93d19fe0c131de0 (patch) | |
tree | f2fc240d52d9be2d668a6ea8a813ab5de5732647 /src/diskio.c | |
parent | 5b29f3ecc4e2edb172d50b23732a588b7a71ce62 (diff) | |
download | wydawca-826bb71c57d903f760c89406f93d19fe0c131de0.tar.gz wydawca-826bb71c57d903f760c89406f93d19fe0c131de0.tar.bz2 |
Replace mu_url_t with a custom URL.
Diffstat (limited to 'src/diskio.c')
-rw-r--r-- | src/diskio.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/diskio.c b/src/diskio.c index 209d387..c369f85 100644 --- a/src/diskio.c +++ b/src/diskio.c @@ -696,17 +696,16 @@ dir_rmsymlink_file(struct file_triplet *trp, const char *file_name) } int -dir_test_url(mu_url_t url, grecs_locus_t * locus) +dir_test_url(wy_url_t url, grecs_locus_t * locus) { int rc; const char *dest_dir; - rc = mu_url_sget_path(url, &dest_dir); - if (rc) { + dest_dir = wy_url_path(url); + if (!dest_dir) { grecs_error(locus, 0, - _("cannot extract directory part from URL: %s"), - mu_strerror(rc)); - return rc; + _("cannot extract directory part from URL")); + return -1; } if (test_dir(dest_dir, &rc)) { if (rc) |