Date: Thu, 31 Jan 2002 18:18:34 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: "M. Warner Losh" <imp@village.org> Cc: drosih@rpi.edu, Todd.Miller@courtesan.com, perry@wasabisystems.com, wes@softweyr.com, asmodai@wxs.nl, mckusick@mckusick.com, arch@FreeBSD.ORG, peter@wemm.org, phk@critter.freebsd.dk, deatley@apple.com, jkh@winston.freebsd.org, deraadt@cvs.openbsd.org Subject: Re: __P macro question Message-ID: <3C59FAFA.1EE9B153@mindspring.com> References: <87d6zq31z6.fsf@snark.piermont.com> <200201312043.g0VKhrDx004889@xerxes.courtesan.com> <p05101402b87f705dd790@[128.113.24.47]> <20020131.153607.63055791.imp@village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
"M. Warner Losh" wrote:
> :   static int  sendfile __P((struct printer *pp, int type, char *file,
> :                                   int format));
> :
> : for a procedure declaration of:
> :      static int
> :      sendfile(pp, type, file, format)
> :              struct printer *pp;
> :              int type;
> :              char *file;
> :              char format;
> :      {
> 
> That's *EXCATLY* why I'm converting the old, but still legal in c89,
> style to new style.  You get warnings that you didn't get before.
The compiler is broken, if it accepts the second when the
first prototype is in scope.
It's a broken compiler, period.
Conversion doesn't fix the compiler brokeness.
I thought you were just getting rid of __P()?
-- Terry
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C59FAFA.1EE9B153>
