[Ocfs2-tools-commits] zab commits r483 - trunk/libocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Dec 14 13:28:44 CST 2004


Author: zab
Date: 2004-12-14 13:28:42 -0600 (Tue, 14 Dec 2004)
New Revision: 483

Modified:
   trunk/libocfs2/namei.c
Log:
o get rid of some casts that were causing compiler warnings


Modified: trunk/libocfs2/namei.c
===================================================================
--- trunk/libocfs2/namei.c	2004-12-14 19:13:43 UTC (rev 482)
+++ trunk/libocfs2/namei.c	2004-12-14 19:28:42 UTC (rev 483)
@@ -61,7 +61,7 @@
 	
 #endif
 
-	ret = ocfs2_malloc_block(fs->fs_io, (void **)&di);
+	ret = ocfs2_malloc_block(fs->fs_io, &di);
 	if (ret)
 		goto bail;
 
@@ -89,7 +89,7 @@
 
 	blkno = el->l_recs[0].e_blkno;
 
-	ret = ocfs2_malloc_block(fs->fs_io, (void **) &buffer);
+	ret = ocfs2_malloc_block(fs->fs_io, &buffer);
 	if (ret)
 		goto bail;
 
@@ -104,7 +104,7 @@
 
 bail:
 	if (buffer)
-		ocfs2_free((void **) &buffer);
+		ocfs2_free(&buffer);
 
 	if (di)
 		ocfs2_free(&di);
@@ -217,13 +217,13 @@
 	char *buf;
 	errcode_t ret;
 	
-	ret = ocfs2_malloc_block(fs->fs_io, (void **) &buf);
+	ret = ocfs2_malloc_block(fs->fs_io, &buf);
 	if (ret)
 		return ret;
 
 	ret = open_namei(fs, root, cwd, name, strlen(name), 0, 0, buf, inode);
 
-	ocfs2_free((void **) &buf);
+	ocfs2_free(&buf);
 	return ret;
 }
 
@@ -237,13 +237,13 @@
 	char *buf;
 	errcode_t ret;
 	
-	ret = ocfs2_malloc_block(fs->fs_io, (void **) &buf);
+	ret = ocfs2_malloc_block(fs->fs_io, &buf);
 	if (ret)
 		return ret;
 	
 	ret = open_namei(fs, root, cwd, name, strlen(name), 1, 0, buf, inode);
 
-	ocfs2_free((void **) &buf);
+	ocfs2_free(&buf);
 	return ret;
 }
 
@@ -257,12 +257,12 @@
 	char *buf;
 	errcode_t ret;
 	
-	ret = ocfs2_malloc_block(fs->fs_io, (void **) &buf);
+	ret = ocfs2_malloc_block(fs->fs_io, &buf);
 	if (ret)
 		return ret;
 
 	ret = follow_link(fs, root, cwd, inode, 0, buf, res_inode);
 
-	ocfs2_free((void **) &buf);
+	ocfs2_free(&buf);
 	return ret;
 }



More information about the Ocfs2-tools-commits mailing list