Remove errno from main