fix
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 20 Jun 2005 13:48:42 +0000 (13:48 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Mon, 20 Jun 2005 13:48:42 +0000 (13:48 +0000)
ChangeLog
lib/fuse.c

index 4ff01482ec12b701dd6132cad12ae1c154a9e254..c94133dd5ef939005a7473f59632293df5d103cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-06-20  Miklos Szeredi <miklos@szeredi.hu>
+
+       * Fix UCLIBC compile error.  Patch by Christian Magnusson
+
 2005-06-08  Miklos Szeredi <miklos@szeredi.hu>
 
        * Enable the auto-loading of the module via access to the
index 042268b42aa810daafadf05d3ee64d1ee9ff7c00..0bd4b86ba1d3fd0bd7b1aeee6cd0d39d724c1b3e 100644 (file)
@@ -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;