lkml.org 
[lkml]   [2006]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[2.6 patch] drivers/isdn/hardware/eicon/os_4bri.c: correct the xdiLoadFile() signature
    It's not good if caller and callee disagree regarding the type of the
    arguments.

    In this case, this could cause problems on 64bit architectures.


    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Signed-off-by: Armin Schindler <armin@melware.de>

    --- linux-2.6.15-rc1-mm2-full/drivers/isdn/hardware/eicon/os_4bri.c.old 2005-11-19 03:48:37.000000000 +0100
    +++ linux-2.6.15-rc1-mm2-full/drivers/isdn/hardware/eicon/os_4bri.c 2005-11-19 06:18:16.000000000 +0100
    @@ -16,6 +16,7 @@
    #include "diva_pci.h"
    #include "mi_pc.h"
    #include "dsrv4bri.h"
    +#include "helpers.h"

    static void *diva_xdiLoadFileFile = NULL;
    static dword diva_xdiLoadFileLength = 0;
    @@ -815,7 +816,7 @@
    return (ret);
    }

    -void *xdiLoadFile(char *FileName, unsigned long *FileLength,
    +void *xdiLoadFile(char *FileName, dword *FileLength,
    unsigned long lim)
    {
    void *ret = diva_xdiLoadFileFile;

    -
    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: 2006-01-05 19:21    [W:4.883 / U:0.432 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site