From: Lennart Poettering Date: Sun, 2 Apr 2006 15:11:25 +0000 (+0000) Subject: compat fixes for neon 0.26 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0c818c9938840a887432a1f6bb4150171865c7c9;p=fusedav.git compat fixes for neon 0.26 git-svn-id: file:///home/lennart/svn/public/fusedav/trunk@26 e35a362c-bbd6-0310-a59f-a4efcb1729c4 --- diff --git a/src/fusedav.c b/src/fusedav.c index bf1d43c..2d04c51 100644 --- a/src/fusedav.c +++ b/src/fusedav.c @@ -228,7 +228,7 @@ static char *strip_trailing_slash(char *fn, int *is_dir) { return fn; } -static void getdir_propfind_callback(void *userdata, const char *href, const ne_prop_result_set *results) { +static void getdir_propfind_callback(void *userdata, const ne_uri *u, const ne_prop_result_set *results) { struct fill_info *f = userdata; struct stat st; char fn[PATH_MAX], *t; @@ -236,7 +236,7 @@ static void getdir_propfind_callback(void *userdata, const char *href, const ne_ assert(f); - strncpy(fn, href, sizeof(fn)); + strncpy(fn, u->path, sizeof(fn)); fn[sizeof(fn)-1] = 0; strip_trailing_slash(fn, &is_dir); @@ -318,14 +318,14 @@ static int dav_readdir( return 0; } -static void getattr_propfind_callback(void *userdata, const char *href, const ne_prop_result_set *results) { +static void getattr_propfind_callback(void *userdata, const ne_uri *u, const ne_prop_result_set *results) { struct stat *st = (struct stat*) userdata; char fn[PATH_MAX]; int is_dir; assert(st); - strncpy(fn, href, sizeof(fn)); + strncpy(fn, u->path, sizeof(fn)); fn[sizeof(fn)-1] = 0; strip_trailing_slash(fn, &is_dir); @@ -791,7 +791,7 @@ static int listxattr_iterator( } } -static void listxattr_propfind_callback(void *userdata, __unused const char *href, const ne_prop_result_set *results) { +static void listxattr_propfind_callback(void *userdata, __unused const ne_uri *u, const ne_prop_result_set *results) { struct listxattr_info *l = userdata; ne_propset_iterate(results, listxattr_iterator, l); } @@ -889,7 +889,7 @@ static int getxattr_iterator( return 0; } -static void getxattr_propfind_callback(void *userdata, __unused const char *href, const ne_prop_result_set *results) { +static void getxattr_propfind_callback(void *userdata, __unused const ne_uri *u, const ne_prop_result_set *results) { struct getxattr_info *g = userdata; ne_propset_iterate(results, getxattr_iterator, g); }