main_headless.c: Remove whitespace at end of lines