From owner-freebsd-audit Mon May 28 0: 2:55 2001 Delivered-To: freebsd-audit@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 7747137B422 for ; Mon, 28 May 2001 00:02:52 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 9249 invoked by uid 1000); 28 May 2001 07:01:58 -0000 Date: Mon, 28 May 2001 10:01:58 +0300 From: Peter Pentchev To: Mike Heffner Cc: freebsd-audit@freebsd.org Subject: Re: cmp(1) patch Message-ID: <20010528100158.C8450@ringworld.oblivion.bg> Mail-Followup-To: Mike Heffner , freebsd-audit@freebsd.org References: <20010527232926.A85869@cowpie.acm.vt.edu> <20010528100017.B8450@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010528100017.B8450@ringworld.oblivion.bg>; from roam@orbitel.bg on Mon, May 28, 2001 at 10:00:17AM +0300 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, May 28, 2001 at 10:00:17AM +0300, Peter Pentchev wrote: > On Sun, May 27, 2001 at 11:29:27PM -0400, Mike Heffner wrote: > > BDECFLAGS cleanup, respect -s flag in one place, return instead of > > exit() at end of main. Please review. > > > > Index: cmp.c > > =================================================================== > > RCS file: /home/ncvs/src/usr.bin/cmp/cmp.c,v > > retrieving revision 1.9 > > diff -u -r1.9 cmp.c > > --- cmp.c 2000/07/25 13:01:34 1.9 > > +++ cmp.c 2001/05/26 21:57:56 > > @@ -58,6 +58,7 @@ > > > > int lflag, sflag, xflag, zflag; > > > > +int main __P((int, char *[])); > > static void usage __P((void)); > > Does gcc with BDECFLAGS really complain for a missing prototype on main()? > I thought gcc was smart enough (it is, at least on -stable).. Eh, nevermind. Of course you're modifying programs with old K&R function declarations, where the declarations themselves are not prototypes. Sorry. G'luck, Peter -- When you are not looking at it, this sentence is in Spanish. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message