dtlogin: Change to ANSI function definitions