Date: Tue, 02 Oct 2001 10:32:55 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <4331-Tue02Oct2001103255+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: <10110020339.AA16416@clio.rice.edu> (sandmann@clio.rice.edu) Subject: Re: putenv question References: <10110020339 DOT AA16416 AT clio DOT rice DOT edu> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) > Date: Mon, 1 Oct 2001 22:39:13 -0500 (CDT) > > I don't have a posix standard, so a simple question ... > > putenv in 2.03 took a const char * argument > > When it was moved to the posix section in cvs it is no longer const > When I passed the const strings "lfn=" in mntent I had to unconst > the strings to avoid warnings. Is it against the standard or some > other way bad for this to be const in the headers? Just wondering. IIRC, the new Posix standard specifies a "char *" type for that argument. So we complied.