lkml.org 
[lkml]   [2003]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:2.132 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site