diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-06-20 13:48:42 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-06-20 13:48:42 +0000 |
commit | 129ef8f625a538a03444e2cce269c6eea03d50af (patch) | |
tree | df003401d6b01d2a65979f6aef808d9340abae6b /lib/fuse.c | |
parent | 4d06f49a158d2d711c3df8997a655d6ce5001566 (diff) |
fix
Diffstat (limited to 'lib/fuse.c')
-rw-r--r-- | lib/fuse.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -94,7 +94,7 @@ static struct fuse_context *(*fuse_getcontext)(void) = NULL; #ifndef USE_UCLIBC #define mutex_init(mut) pthread_mutex_init(mut, NULL) #else -static void mutex_init(pthread_mutex_t mut) +static void mutex_init(pthread_mutex_t *mut) { pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); @@ -1730,8 +1730,9 @@ static int readdir_fill(struct fuse *f, struct fuse_in_header *in, struct fuse_read_in *arg, struct fuse_dirhandle *dh) { int err = -ENOENT; + char *path; pthread_rwlock_rdlock(&f->tree_lock); - char *path = get_path(f, in->nodeid); + path = get_path(f, in->nodeid); if (path != NULL) { struct fuse_file_info fi; |