dsdm: Change to ANSI function definitions