单项选择题

The headmaster warned him to ()his ways if he wanted to stay at the school.

A. repair
B. restore
C. mend
D. protect