From 8ecf7b15ba0c4b5b486f85fec5c53b49588a95d9 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Wed, 18 Nov 2020 16:31:09 -0600 Subject: [PATCH] clean up a couple of compile warnings --- rigs/adat/adat.c | 2 +- src/serial.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rigs/adat/adat.c b/rigs/adat/adat.c index 1e96dce76..bab7a9466 100644 --- a/rigs/adat/adat.c +++ b/rigs/adat/adat.c @@ -1488,7 +1488,7 @@ int adat_get_single_cmd_result(RIG *pRig) pcPos = acBuf; - if ((nRC == RIG_OK)) + if (nRC == RIG_OK) { int nBufLength = 0; diff --git a/src/serial.c b/src/serial.c index b3c9a3bb3..d053ff956 100644 --- a/src/serial.c +++ b/src/serial.c @@ -354,10 +354,10 @@ int HAMLIB_API serial_setup(hamlib_port_t *rp) /* TODO */ rig_debug(RIG_DEBUG_TRACE, "%s: cfsetispeed=%d,0x%04x\n", __func__, - rp->parm.serial.rate, speed); + (int)rp->parm.serial.rate, (int)speed); cfsetispeed(&options, speed); rig_debug(RIG_DEBUG_TRACE, "%s: cfsetospeed=%d,0x%04x\n", __func__, - rp->parm.serial.rate, speed); + (int)rp->parm.serial.rate, (int)speed); cfsetospeed(&options, speed); /*