pmaillot / X32-Behringer

This GIT repo (C language) holds applications and utilities for the Behringer X32 and M32 mixing consoles. Additional details, documentation, implementation examples and apps can be found in my website:
https://sites.google.com/site/patrickmaillot/x32
234 stars 41 forks source link

FIX: Program did always print usage and stopped #37

Closed schattenmann80 closed 8 months ago

schattenmann80 commented 8 months ago

The return value from getopt was never -1 and therefore the program always closed while printing the usage text.

The return value from getopt is int, but the variable was char. (int) -1 is not the same as (char) -1. And therefor the while loop did never stop and the switch did at the and go to the default case.

pmaillot commented 8 months ago

Thanks. known issue I fixed in many of my other programs.

schattenmann80 commented 8 months ago

Thanks for the greet work and the quick response.