From owner-cvs-all Thu Dec 20 5: 1: 6 2001 Delivered-To: cvs-all@freebsd.org Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 4E25D37B419; Thu, 20 Dec 2001 05:00:58 -0800 (PST) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.11.6/8.11.6) with UUCP id fBKD0vn35271; Thu, 20 Dec 2001 13:00:57 GMT (envelope-from mark@grondar.za) Received: from grondar.za (mark@localhost [127.0.0.1]) by grimreaper.grondar.org (8.11.6/8.11.6) with ESMTP id fBJ9ufO79815; Wed, 19 Dec 2001 11:56:41 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <200112190956.fBJ9ufO79815@grimreaper.grondar.org> To: babkin@freebsd.org Cc: cvs-all@freebsd.org, cvs-committers@freebsd.org Subject: Re: Are prototypes for main() illegal by any standard ? (was Re: References: <3C1FEEA9.EEE89A7@bellatlantic.net> In-Reply-To: <3C1FEEA9.EEE89A7@bellatlantic.net> ; from Sergey Babkin "Tue, 18 Dec 2001 20:34:33 EST." Date: Wed, 19 Dec 2001 11:56:40 +0200 From: Mark Murray 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 > > And it should compile warning-free and run without error. Agreed > > that the style sucks, but it is _legal_ - and any compiler's prior > > No, it's completely wrong. The return type of main() is int. > Otherwise you get garbage for the exit code. Like I said, the style sucks, but I may not _care_ abiut the exit code. I may want the exit code for entropy :-). Etc.. 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