Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 21:17:50 -0800
From:      Mike Makonnen <mike_makonnen@yahoo.com>
To:        "M. Warner Losh" <imp@village.org>
Cc:        peter@wemm.org, current@freebsd.org
Subject:   Re: HEADS UP: cvs commit: src/sys/conf kern.pre.mk (fwd)
Message-ID:  <1014700670.677.9.camel@blackbox.pacbell.net>
In-Reply-To: <20020225.215923.28857552.imp@village.org>
References:  <20020226014624.8D6A03BAC@overcee.wemm.org> <20020225.215923.28857552.imp@village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2002-02-25 at 20:59, M. Warner Losh wrote:
> I've fixed a few of the low hanging fruit, but I don't know how to get
> rid of warnings like:
> 
> const char *foo = "blah";
> char *baz = foo;
> 
> when I know they are safe.

Correct me if I'm wrong, but isn't the correct declaration:

const char foo[] = "blah";
char baz[] = "foo";

cheers,
mike makonnen



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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