remove stray comma in generated c code