Using int instead of char for getopt return. On Raspbian char is unsigned.