• Al Viro's avatar
    do_vfs_ioctl(): use saner types · 34d3d0e6
    Al Viro authored
    casting to pointer to int, only to pass that to function that
    takes pointer to void and uses it as pointer to structure is
    really asking for trouble.
    
    "Some pointer, I'm not sure what to" is spelled "void *",
    not "int *"; use that.
    
    And declare the functions we are passing that pointer to
    as taking the pointer to what they really want to access.
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    34d3d0e6
ioctl.c 18.9 KB