Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 17 Mar 2003 13:35:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 17 Mar 2003 13:35:05 -0500 Received: from pasmtp.tele.dk ([193.162.159.95]:7436 "EHLO pasmtp.tele.dk") by vger.kernel.org with ESMTP id ; Mon, 17 Mar 2003 13:35:04 -0500 Date: Mon, 17 Mar 2003 19:45:57 +0100 From: Sam Ravnborg To: Andries.Brouwer@cwi.nl Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fix affs/super.c Message-ID: <20030317184557.GC4281@mars.ravnborg.org> Mail-Followup-To: Andries.Brouwer@cwi.nl, torvalds@transmeta.com, linux-kernel@vger.kernel.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 531 Lines: 16 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/