Removed C99isms from main.c