Using int instead of char for getopt return.

This causes a failure on Raspbian, where 'char' is unsigned. The EOF check fails.