test: txrx_hwloop: fix getopt_long warning by changing 'c' to int

Resolved the compiler warning caused by comparing
getopt_long's return value with a char. Changed 'c'
from char to int to correctly handle -1 return values.

Fixes #952
This commit is contained in:
Ryan Thompson 2023-11-28 23:32:11 +00:00
commit 1a2d9e3e02

View file

@ -88,7 +88,7 @@ int main(int argc, char *argv[]) {
int opt_ind = 0;
bool ok;
char* optstr;
char c;
int c;
bladerf_log_level log_level;
/** Threading */