Convert functions to the new-style format.

Submitted by:	Vijay Singh <vijju.singh@gmail.com> via -hackers