[PARPORT] release and void

From: Nordic Boy (jklaas@cs.albany.edu)
Date: Fri Jan 26 2001 - 09:10:02 EST

  • Next message: Julian Panizo: "[PARPORT] Win modem"

    I am trying to go through my kernel module and clean up the compilation
    a little bit. I am working in the 2.2 version.

    In documentation relating to the release file operation, every thing
    I have seen shows it to be a void. So that a function declaration might

    static void parswitch_release( struct inode *inode, struct file *file)

    However, when I attempt to compile this, I get:

    parswitch.c:337: warning: initialization from incompatible pointer type

    Where line 337 is the declaration for the file_operations struct. My
    question is this correct? If it is supposed to be an int, what would it
    return? Since it should never fail, should I always return a 1 or some
    positive integer?


    James Klaas

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --

    This archive was generated by hypermail 2b29 : Fri Jan 26 2001 - 09:17:58 EST