Changed type of variable that gets the return value from getopt_long from char to int.
The char type produced a bug when compiled to (at least one type of) arm processor, where char was defined as an unsigned int and the return value of -1 was converted as 255. This bug resulted in always returning showing the usage and exit with error.
Changed type of variable that gets the return value from getopt_long from char to int. The char type produced a bug when compiled to (at least one type of) arm processor, where char was defined as an unsigned int and the return value of -1 was converted as 255. This bug resulted in always returning showing the usage and exit with error.