Apply the one-line if style to the main.c