From owner-cvs-all Tue Sep 4 13:23:35 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id A3E7B37B403; Tue, 4 Sep 2001 13:23:29 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id GAA01367; Wed, 5 Sep 2001 06:23:27 +1000 Date: Wed, 5 Sep 2001 06:23:04 +1000 (EST) From: Bruce Evans X-X-Sender: To: Mark Murray Cc: , Subject: Re: cvs commit: src/usr.bin/su Makefile su.c In-Reply-To: <200109041710.f84HAv396208@freefall.freebsd.org> Message-ID: <20010905060708.T18238-100000@alphplex.bde.org> 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 On Tue, 4 Sep 2001, Mark Murray wrote: > markm 2001/09/04 10:10:57 PDT > > Modified files: > usr.bin/su Makefile su.c > Log: > WARNS=2 fixes. > > The remaining problem of converting highly incompatible pointer types > is done by "laundering" the value through a union. > > This solves the problem (in my own mind) of how a "const char *" _ever_ ^^^^^^^^^^^^^^ "char *" > actually gets a value in a WARNS=2 world. ^ "const char *" > > Revision Changes Path > 1.34 +2 -4 src/usr.bin/su/Makefile > 1.45 +11 -7 src/usr.bin/su/su.c This breaks the warning for me. I think iT's OK in one utility but not in all the ones in /usr/src that call execve() like su does. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message