From owner-cvs-all Sun Feb 18 20:58:50 2001 Delivered-To: cvs-all@freebsd.org Received: from mobile.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 618DB37B491; Sun, 18 Feb 2001 20:58:41 -0800 (PST) Received: from netplex.com.au (localhost [127.0.0.1]) by mobile.wemm.org (8.11.1/8.11.1) with ESMTP id f1J4wfr53235; Sun, 18 Feb 2001 20:58:41 -0800 (PST) (envelope-from peter@netplex.com.au) Message-Id: <200102190458.f1J4wfr53235@mobile.wemm.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/config Makefile config.h config.y lang.l main.c mkmakefile.c mkoptions.c In-Reply-To: <200102190443.f1J4hM147160@freefall.freebsd.org> Date: Sun, 18 Feb 2001 20:58:41 -0800 From: Peter Wemm Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Wemm wrote: > peter 2001/02/18 20:43:22 PST > > Modified files: > usr.sbin/config Makefile config.h config.y lang.l main.c > mkmakefile.c mkoptions.c > Log: > ${BDECFLAGS} work. And fix a real error in the process. A "MAXUSERS" > string could have been passed to free(); There are some warnings here > I am not sure how to fix as they are in the lex scanner code, etc. And this one really takes the cake: main.c:140: warning: passing arg 2 of `mkdir' with different width due to prototype The line is: mkdir(p, 0777); The prototype is: mkdir(const char *, mode_t); The type of mode_t is u_int16_t. However, mkdir(p, (mode_t)0777); does not fix the warning. I seem to recall the i386 ABI promoting everything to 32 bit first and suspect that there is some gcc strangeness with the 16 bit arg and the 32 bit promotion.. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message