lkml.org 
[lkml]   [2003]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question about style when converting from K&R to ANSI C.
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.184 / U:1.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site