The prototypes in the declaration and definition of your function are different :)