Your ANSI-ized version looks correct. What kind of errors are you getting? Are you sure there's not a return type on the line above the name of the function?

By the way, that "odd" style of function declaration is called K&R, after the original developers of C. ANSI is the group that introduced the new way of function declarations involving prototypes, etc.