Date: Mon, 26 Nov 2001 20:30:02 -0500 From: Dave Chapeskie <freebsd@ddm.wox.org> To: audit@FreeBSD.org Cc: "Sergey A. Osokin" <osa@freebsd.org.ru> Subject: Re: date(1) WARNS=2 cleanup Message-ID: <20011126203002.A993@ddm.wox.org> In-Reply-To: <20011126185449.A29823@freebsd.org.ru>; from osa@freebsd.org.ru on Mon, Nov 26, 2001 at 06:54:50PM %2B0300 References: <20011123150934.A10406@freebsd.org.ru> <20011123161136.A11027@freebsd.org.ru> <20011123171705.A2462@ddm.wox.org> <20011126185449.A29823@freebsd.org.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 26, 2001 at 06:54:50PM +0300, Sergey A. Osokin wrote: > - format = "%+"; > + (const char *)format = "%+"; That's not what I ment. As far as I'm aware, casting an l-value is bogus. Change the definition of 'format' itself. E.g. something like: @@ -81,7 +80,8 @@ struct timezone tz; int ch, rflag; int jflag, nflag; - char *format, buf[1024]; + const char *format; + char buf[1024]; char *endptr, *fmt; char *tmp; int set_timezone; -- Dave Chapeskie OpenPGP Key ID: 0x3D2B6B34 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011126203002.A993>