Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2001 16:59:08 +0000
From:      Mark Murray <mark@grondar.za>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        Luigi Rizzo <luigi@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/bin/rm rm.c src/usr.sbin/chown chown.c src/usr.sbin/dev_mkdb dev_mkdb.c 
Message-ID:  <200112141659.fBEGx9U02211@grimreaper.grondar.org>
In-Reply-To: <20011214184532.A99179@sunbay.com> ; from Ruslan Ermilov <ru@FreeBSD.org>  "Fri, 14 Dec 2001 18:45:32 %2B0200."
References:  <20011214184532.A99179@sunbay.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Now everybody knows that you don't actually use -CURRENT.  :-)
> In -CURRENT, main() doesn't require a prototype.
> Please back these out.

This is incorrect. I'm doing a big WARNS=2 sweep in usr.bin, and
main _does_ need proper prototyping.

This is not a proper prototype:

int main();

This is ok:

int main(int, char **);

and so is this (yeah, yeah, I know it is complete function):

int
main(int argc, char *argv[])
{
	:
}

but NOT this

int
main()
{
	:
}

M
-- 
o       Mark Murray
\_      FreeBSD Services Limited
O.\_    Warning: this .sig is umop ap!sdn

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?200112141659.fBEGx9U02211>