From owner-freebsd-audit Mon Jul 15 8:28:47 2002 Delivered-To: freebsd-audit@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CF2537B400; Mon, 15 Jul 2002 08:28:46 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36B7C43E77; Mon, 15 Jul 2002 08:28:45 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g6FFSi1f007292; Mon, 15 Jul 2002 09:28:44 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 15 Jul 2002 09:28:04 -0600 (MDT) Message-Id: <20020715.092804.90381918.imp@bsdimp.com> To: des@ofug.org Cc: keramida@FreeBSD.ORG, bde@zeta.org.au, freebsd-audit@FreeBSD.ORG Subject: Re: bin/ln & WARNS=5 From: "M. Warner Losh" In-Reply-To: References: <20020715114437.GA51994@hades.hell.gr> <20020715.090542.07693309.imp@bsdimp.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: Dag-Erling Smorgrav writes: : "M. Warner Losh" writes: : > : > There are two different cases - one is "sizeof(type)" which requires : > : > parentheses, the other is "sizeof variable" which doesn't. In the : > : > latter case, the rule about avoiding unnecessary parentheses applies. : > That's not always the case. sizeof type always works too. : : No, "sizeof type" is a syntax error in C89 and C99. In any event, sizeof(var) is the BSD way of saying that. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message