From keramida@ceid.upatras.gr  Wed Jun  5 14:48:46 2002
Return-Path: <keramida@ceid.upatras.gr>
Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5])
	by hub.freebsd.org (Postfix) with ESMTP id C685D37B40C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 Jun 2002 14:48:43 -0700 (PDT)
Received: from hades.hell.gr (patr530-b140.otenet.gr [212.205.244.148])
	by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g55Lmc7Y000170
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 6 Jun 2002 00:48:38 +0300 (EEST)
Received: from hades.hell.gr (hades [127.0.0.1])
	by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g55Lmaau022348
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 6 Jun 2002 00:48:37 +0300 (EEST)
	(envelope-from charon@hades.hell.gr)
Received: (from charon@localhost)
	by hades.hell.gr (8.12.3/8.12.3/Submit) id g55J7ZR6011605;
	Wed, 5 Jun 2002 22:07:35 +0300 (EEST)
	(envelope-from charon)
Message-Id: <200206051907.g55J7ZR6011605@hades.hell.gr>
Date: Wed, 5 Jun 2002 22:07:35 +0300 (EEST)
From: Giorgos Keramidas <keramida@freebsd.org>
Reply-To: Giorgos Keramidas <keramida@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ANSI-fy main() of src/usr.bin/colldef fixing WARNS=3
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38930
>Category:       bin
>Synopsis:       ANSI-fy main() of src/usr.bin/colldef fixing WARNS=3
>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:   Wed Jun 05 14:50:02 PDT 2002
>Closed-Date:    Sun Jul 28 08:20:32 PDT 2002
>Last-Modified:  Sun Jul 28 08:20:32 PDT 2002
>Originator:     Giorgos Keramidas
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

	System: FreeBSD hades.hell.gr 5.0-CURRENT FreeBSD 5.0-CURRENT #0:
	Wed Jun 5 05:24:39 EEST 2002
	root@hades.hell.gr:/usr/obj/usr/src/sys/HECATE i386

>Description:

	The attached patch enables compiling of src/usr.bin/colldef
	with WARNS=3, and fixes the only warning this program has.
	Only main() does not have an ANSI prototype in this file,
	and ANSIfying it enables a clean build with WARNS ;-)

>How-To-Repeat:

	% cd src/usr.bin/colldef
	% make WARNS=3 all

>Fix:

--- diff begins here ---
Index: parse.y
===================================================================
RCS file: /home/ncvs/src/usr.bin/colldef/parse.y,v
retrieving revision 1.24
diff -u -r1.24 parse.y
--- parse.y	9 Apr 2002 11:39:03 -0000	1.24
+++ parse.y	5 Jun 2002 19:02:42 -0000
@@ -232,9 +232,7 @@
 ;
 %%
 int
-main(ac, av)
-	int ac;
-	char **av;
+main(int ac, char *av[])
 {
 	int ch;
 
--- diff ends here ---
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Sun Jul 28 08:20:14 PDT 2002 
State-Changed-Why:  
Similar patch just applied to -current. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38930 
>Unformatted:
