Messages in this thread | ![/](/images/icornerl.gif) | | Date | Mon, 17 Mar 2003 19:45:57 +0100 | From | Sam Ravnborg <> | Subject | Re: [PATCH] fix affs/super.c |
| |
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/
| ![\](/images/icornerr.gif) |