Fix for bug found while running on ARM.
Fix for bug found while running on ARM.

The code was using an unsigned char as return value for getopt while
an in was returned. This resulted in wrong detection of EOF due to
difference in default char allocation on ARM (unsigned v.s. signed).

keesj/saleae-logic-libusb,keesj/saleae-logic-libusb