errno is not needed for strerror
Remove use of perror, use strerror(errno) instead