[Pvfs2-cvs] commit by slang in pvfs2/include: pvfs2-types.h

CVS commit program cvs at parl.clemson.edu
Wed Dec 19 00:39:09 EST 2007


Update of /projects/cvsroot/pvfs2/include
In directory parlweb1:/tmp/cvs-serv2359/include

Modified Files:
	pvfs2-types.h 
Log Message:
fix for PVFS_ERROR_TO_ERRNO returning negative values.


Index: pvfs2-types.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-types.h,v
diff -p -u -r1.146 -r1.147
--- pvfs2-types.h	30 Nov 2007 18:15:57 -0000	1.146
+++ pvfs2-types.h	19 Dec 2007 05:39:09 -0000	1.147
@@ -771,7 +771,7 @@ PVFS_error PVFS_get_errno_mapping(PVFS_e
         PVFS_ERROR_CODE(((positive ? error :               \
                              abs(error))) & ~mask)];       \
     }                                                      \
-    return (positive ? ret : -ret);                        \
+    return ret;                        			   \
 }                                                          \
 DECLARE_ERRNO_MAPPING()
 #define PVFS_ERROR_TO_ERRNO(__error) PVFS_get_errno_mapping(__error)



More information about the Pvfs2-cvs mailing list