Skip to contentSkip to conversation

reiser4: use NULL for pointers

PATCH New Randy Dunlap 1 participant 1 message Nov 29, 2006 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reiser4: use NULL for pointers

From: Randy Dunlap <[email protected]>

Use NULL instead of 0 for pointers. fs/reiser4/plugin/item/ctail.c:1188:38: warning: Using plain integer as NULL pointer

---
 fs/reiser4/plugin/item/ctail.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/reiser4/plugin/item/ctail.c +1 -1
@@ -1185,7 +1185,7 @@ static int alloc_convert_data(flush_pos_
 	if (!pos->sq)
 		return RETERR(-ENOMEM);
 	memset(pos->sq, 0, sizeof(*pos->sq));
-	cluster_init_write(&pos->sq->clust, 0);
+	cluster_init_write(&pos->sq->clust, NULL);
 	return 0;
 }
 

---