Replace exit(0) and exit(1) with exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)