Fixed some c code with unused vars.