From nobody@FreeBSD.org  Thu May 17 21:44:40 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 74BFB37B424
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 May 2001 21:44:40 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f4I4iep00633;
	Thu, 17 May 2001 21:44:40 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200105180444.f4I4iep00633@freefall.freebsd.org>
Date: Thu, 17 May 2001 21:44:40 -0700 (PDT)
From: jason@smethers.net
To: freebsd-gnats-submit@FreeBSD.org
Subject: change request
X-Send-Pr-Version: www-1.0

>Number:         27422
>Category:       bin
>Synopsis:       change request
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 17 21:50:01 PDT 2001
>Closed-Date:    Tue Jul 17 20:09:43 PDT 2001
>Last-Modified:  Fri Jul 20 15:00:01 PDT 2001
>Originator:     Jason Smethers
>Release:        
>Organization:
>Environment:
>Description:
Add to sync missing header for exit(3) and prototype main() to standard.

diffs to current
http://www.smethers.net/~jason/FreeBSD/patches/bin.sync.0.u.diff
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Tue Jul 17 20:09:43 PDT 2001 
State-Changed-Why:  
The include for <stdlib.h> was added to sync(8) 4 weeks ago. 
Also, we have corrected gcc so that it no longer warns about 
a non-prototyped main(). 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27422 

From: Mike Barcroft <mike@FreeBSD.org>
To: jason@smethers.net
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/27422: change request
Date: Fri, 20 Jul 2001 18:16:00 -0400

 On Fri, Jul 20, 2001 at 03:51:33PM -0500, Jason wrote:
 > On Tuesday 17 July 2001 10:13, mike@FreeBSD.org wrote:
 > > Also, we have corrected gcc so that it no longer warns about
 > > a non-prototyped main().
 > >
 > > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27422
 > 
 > What if I decide to use a complier other than gcc? It may break.
 > 
 > Why not correct the code? You can be sure that someone will bring this kind 
 > of stuff up again and again. Why not fix just it now and have it over with?
 
 A prototype of main() should never be required.  A warning such
 as a missing prototype is almost never a fatal error.  The only
 reason we corrected gcc was because of the WARNS lockdown we are
 currently doing (see -audit archives for details).
 
 Best regards,
 Mike Barcroft
>Unformatted:
