* [PATCH] reiser4: use NULL for pointers
@ 2006-11-29 21:16 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2006-11-29 21:16 UTC (permalink / raw)
To: linux-fsdevel; +Cc: reiserfs-dev, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Use NULL instead of 0 for pointers.
fs/reiser4/plugin/item/ctail.c:1188:38: warning: Using plain integer as NULL pointer
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
fs/reiser4/plugin/item/ctail.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.19-rc6-mm2.orig/fs/reiser4/plugin/item/ctail.c
+++ linux-2.6.19-rc6-mm2/fs/reiser4/plugin/item/ctail.c
@@ -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;
}
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-29 21:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-29 21:16 [PATCH] reiser4: use NULL for pointers Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).