Quantcast

Some compilation errors...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Some compilation errors...

Christian Magnusson

I forgot to report some compilation errors when building with
USE_UCLIBC defined. It's a pointer error and and a local variable
defined after code started.

/Christian


diff -ruw
fuse/lib/fuse.c /opt/uclinux/uClinux-dist/user/mag/fuse/lib/fuse.c
--- fuse/lib/fuse.c     2005-06-07 14:34:01.000000000 +0200
+++ /opt/uclinux/uClinux-dist/user/mag/fuse/lib/fuse.c  2005-06-07
14:46:52.000000000 +0200
@@ -94,7 +94,7 @@
 #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 @@
                         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;




--
Christian Magnusson <[hidden email]>



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
fuse-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fuse-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Some compilation errors...

Miklos Szeredi
> I forgot to report some compilation errors when building with
> USE_UCLIBC defined. It's a pointer error and and a local variable
> defined after code started.

Applied, thanks.

Miklos


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
fuse-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fuse-devel
Loading...