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); /*