You got lucky. The compiler's guess as to what the function prototype should be was close enough to its actual declaration to produce something which worked.

Do you understand my sig yet?