lkml.org 
[lkml]   [2005]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] *tiny* CodingStyle correction
    Date
    CodingStyle is supposed to set a good example, so 
    int fun(int )
    doesn't look too good ;-)

    I considered both
    int fun(void)
    and
    int fun(int a)
    as replacements, and settled on the last.


    Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
    ---

    Documentation/CodingStyle | 2 +-
    1 files changed, 1 insertion(+), 1 deletion(-)

    --- linux-2.6.14-rc2-git3-orig/Documentation/CodingStyle 2005-09-22 00:27:53.000000000 +0200
    +++ linux-2.6.14-rc2-git3/Documentation/CodingStyle 2005-09-26 22:36:37.000000000 +0200
    @@ -199,7 +199,7 @@
    modifications are prevented
    - saves the compiler work to optimize redundant code away ;)

    -int fun(int )
    +int fun(int a)
    {
    int result = 0;
    char *buffer = kmalloc(SIZE);

    -
    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-09-26 22:40    [W:0.024 / U:1.244 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site