From owner-cvs-all Fri Apr 5 11:22:15 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 34DE737B405; Fri, 5 Apr 2002 11:22:02 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 151045309; Fri, 5 Apr 2002 21:22:00 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: obrien@FreeBSD.org Cc: Mikhail Teterin , mike@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/yacc main.c References: <20020405003033.F93859@espresso.q9media.com> <200204051656.g35GuUnF010963@aldan.algebra.com> <20020405100427.A46969@dragon.nuxi.com> From: Dag-Erling Smorgrav Date: 05 Apr 2002 21:21:59 +0200 In-Reply-To: <20020405100427.A46969@dragon.nuxi.com> Message-ID: Lines: 11 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "David O'Brien" writes: > DROP IT. OpenBSD and NetBSD uses ``char *foo = "bar";'' > We use ``char foo[] = bar";'' due to Mark's pickier lint. No, we use 'char foo[] = "bar";' because 'char *foo = "bar";' causes compile-time warnings (and rightly so). In some cases, we could probably use 'const char *foo = "bar";'. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message