ANSI'fy and modernise.
ANSI'fy and modernise, including the addition of a missing return value in ClientTogglePin.