From 1a2d9e3e02b257bbcf60ba0505ff7caf75656c49 Mon Sep 17 00:00:00 2001 From: Ryan Thompson Date: Tue, 28 Nov 2023 23:32:11 +0000 Subject: [PATCH] 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 --- .../libbladeRF_test/test_timestamps/src/test_txrx_hwloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/libraries/libbladeRF_test/test_timestamps/src/test_txrx_hwloop.c b/host/libraries/libbladeRF_test/test_timestamps/src/test_txrx_hwloop.c index 3df03ee8..39ccd7f7 100644 --- a/host/libraries/libbladeRF_test/test_timestamps/src/test_txrx_hwloop.c +++ b/host/libraries/libbladeRF_test/test_timestamps/src/test_txrx_hwloop.c @@ -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 */