Date: Sun, 18 Feb 2001 20:58:41 -0800 From: Peter Wemm <peter@netplex.com.au> 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 Message-ID: <200102190458.f1J4wfr53235@mobile.wemm.org> In-Reply-To: <200102190443.f1J4hM147160@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102190458.f1J4wfr53235>