telefireone-v1.0: Use a boolean value for ao_log_running
authorKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 05:42:50 +0000 (21:42 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 05:42:50 +0000 (21:42 -0800)
Instead of reading a hex value and saving it directly, use
zero/none-zero to compute a boolean instead, avoiding a type
conversion warning.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telefireone-v1.0/ao_telefireone.c

index d9c6586c7fac04417f9a139977340a3ea2938574..84140fd36ee170cc4d8bef4d0801755acfc71512 100644 (file)
@@ -26,7 +26,7 @@
 static void
 set_logging(void)
 {
-       ao_log_running = ao_cmd_hex();
+       ao_log_running = ao_cmd_hex() != 0;
        ao_wakeup(&ao_log_running);
 }