Skip site navigation (1)Skip section navigation (2)
Date:      05 Apr 2002 21:21:59 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        obrien@FreeBSD.org
Cc:        Mikhail Teterin <mi@aldan.algebra.com>, mike@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/yacc main.c
Message-ID:  <xzp8z82t0h4.fsf@flood.ping.uio.no>
In-Reply-To: <20020405100427.A46969@dragon.nuxi.com>
References:  <20020405003033.F93859@espresso.q9media.com> <200204051656.g35GuUnF010963@aldan.algebra.com> <20020405100427.A46969@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"David O'Brien" <obrien@FreeBSD.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp8z82t0h4.fsf>