From keramida@ceid.upatras.gr  Wed Jun  5 14:48:47 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 821CF37B40B
	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 g55Lmc7Y000177
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 6 Jun 2002 00:48:40 +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 g55Lmaaw022348
	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 g55J1b2k010910;
	Wed, 5 Jun 2002 22:01:37 +0300 (EEST)
	(envelope-from charon)
Message-Id: <200206051901.g55J1b2k010910@hades.hell.gr>
Date: Wed, 5 Jun 2002 22:01:37 +0300 (EEST)
From: Giorgos Keramidas <keramida@freebsd.org>
Reply-To: Giorgos Keramidas <keramida@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Cleanup for WARNS=4 of src/games/fortune/strfile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38931
>Category:       bin
>Synopsis:       Cleanup for WARNS=4 of src/games/fortune/strfile
>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:    Fri Jul 23 11:37:05 GMT 2004
>Last-Modified:  Fri Jul 23 11:37:05 GMT 2004
>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:
	After a buildworld with WARNS=3, and a few greps for warnings
	to the logfile, here's a change that removes a few of the
	warnings for the fortune sources.

>How-To-Repeat:

	% cd src/games/fortunes/strfile
	% make WARNS=3

>Fix:

%%%
Index: strfile.c
===================================================================
RCS file: /home/ncvs/src/games/fortune/strfile/strfile.c,v
retrieving revision 1.21
diff -u -r1.21 strfile.c
--- strfile.c	24 Mar 2002 01:09:35 -0000	1.21
+++ strfile.c	5 Jun 2002 18:52:08 -0000
@@ -147,13 +147,12 @@
  *	CHUNKSIZE blocks; if the latter, we just write each pointer,
  *	and then seek back to the beginning to write in the table.
  */
-int main(ac, av)
-int	ac;
-char	**av;
+int
+main(int ac, char *av[])
 {
 	char		*sp, dc;
 	FILE		*inf, *outf;
-	long           last_off, length, pos, *p;
+	unsigned long	last_off, length, pos, *p;
 	int		first, cnt;
 	char		*nsp;
 	STR		*fp;
%%%
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: le 
State-Changed-When: Fri Jul 23 11:36:52 GMT 2004 
State-Changed-Why:  
Patch slightly modified and committed, thanks! 

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