well, kinda... not...
the error does not correspond the code you pasted though, but that does not matter, I quess...
well, ja. it still leaves the reason unanswered.

that error would be logical only if you modified the function-definition's start line and that I can't see as you pasted the working code.
_________________________
!

download KiXnet