Re: [PATCH] fix affs/super.c

From: Sam Ravnborg (sam@ravnborg.org)
Date: Mon Mar 17 2003 - 13:45:57 EST


On Mon, Mar 17, 2003 at 04:09:05PM +0100, Andries.Brouwer@cwi.nl wrote:
> - memset(sbi, 0, sizeof(*AFFS_SB));
> + memset(sbi, 0, sizeof(struct affs_sb_info));

Or:
> + memset(sbi, 0, sizeof(*sbi));

In this way you do not need to update the memset when you
rename/change the type.

        Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:20 EST