Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2002 10:24:09 +0100
From:      Georg-W Koltermann <Georg.Koltermann@mscsoftware.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:  <px8r8n8vbnq.wl@hunter.muc.macsch.com>
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
Hi Warner,

a simple cast

  char *baz = (char*)foo;

works for me.

--
Regards,
Georg.

At Mon, 25 Feb 2002 21:59:23 -0700 (MST),
M. Warner Losh <imp@village.org> wrote:
> 
> In message: <20020226014624.8D6A03BAC@overcee.wemm.org>
>             Peter Wemm <peter@wemm.org> writes:
> : There are a couple of offending files in the kernel still, and some
> : drivers. The things people are most likely to run into are:  usb, inet6,
> : and some drivers (twe, asr etc).
> 
> 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.
> 
> Warner

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?px8r8n8vbnq.wl>