Fix typo in function name, simplify linkage.