Re: Question about style when converting from K&R to ANSI C.

Arnaldo Carvalho de Melo
2003-06-01T06:25:44Z

Em Sat, May 31, 2003 at 11:56:16PM -0600, Steven Cole escreveu:
> Greetings all,
>
> I've been converting the few files with old-style function prototypes to
> ANSI C, and I would like to make sure the following is acceptable.
>
> Original form:
>
> int
> foo()
> {
> /* body here */
> }
>
> Proposed conversion:
>
> int foo(void)
> {
> /* body here */
> }
>
> The above should be straightforward, but if there are any problems with
> that, please holler. I'll be sending patches through the maintainers
> soon.

Perfect!

- Arnaldo