Which was a common restriction included in the black codes?

A: Former slaves could not work for their former masters.

B: Former slaves could only vote in local elections.

C: Former slaves could only work for their former masters.

D: Former slaves could not sue in court.