Returning -1 in main() is weird