Skip to content

Commit

Permalink
Fix for bug found while running on ARM.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
keesj committed Dec 13, 2016
1 parent 7810b24 commit c0100e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void full_usage()
/* Returns true if everything was OK */
bool parse_args(int argc, char **argv, struct slogic_handle *handle)
{
char c;
int c;
int libusb_debug_level = 0;
char *endptr;
/* TODO: Add a -d flag to turn on internal debugging */
Expand Down

0 comments on commit c0100e3

Please sign in to comment.