kopia lustrzana https://github.com/Hamlib/Hamlib
Fix more cppcheck warnings in thg71.c
rodzic
ecadeda486
commit
fdc18a62de
|
@ -455,8 +455,6 @@ int thg71_get_vfo(RIG *rig, vfo_t *vfo)
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
int thg71_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
int thg71_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
||||||
{
|
{
|
||||||
int retval;
|
|
||||||
|
|
||||||
if (func != RIG_FUNC_TBURST)
|
if (func != RIG_FUNC_TBURST)
|
||||||
{
|
{
|
||||||
return -RIG_EINVAL;
|
return -RIG_EINVAL;
|
||||||
|
@ -464,7 +462,7 @@ int thg71_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
||||||
|
|
||||||
if (status == 1)
|
if (status == 1)
|
||||||
{
|
{
|
||||||
retval = kenwood_transaction(rig, "TT", NULL, 0);
|
int retval = kenwood_transaction(rig, "TT", NULL, 0);
|
||||||
|
|
||||||
if (retval != RIG_OK)
|
if (retval != RIG_OK)
|
||||||
{
|
{
|
||||||
|
@ -485,7 +483,7 @@ int thg71_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
int thg71_open(RIG *rig)
|
int thg71_open(RIG *rig)
|
||||||
{
|
{
|
||||||
char ackbuf[ACKBUF_LEN], *strl, *stru;
|
char ackbuf[ACKBUF_LEN], *strl;
|
||||||
int retval, i;
|
int retval, i;
|
||||||
const freq_range_t frend = RIG_FRNG_END;
|
const freq_range_t frend = RIG_FRNG_END;
|
||||||
|
|
||||||
|
@ -512,7 +510,7 @@ int thg71_open(RIG *rig)
|
||||||
freq_range_t frng;
|
freq_range_t frng;
|
||||||
|
|
||||||
strl = strtok(NULL, ",");
|
strl = strtok(NULL, ",");
|
||||||
stru = strtok(NULL, ",");
|
char *stru = strtok(NULL, ",");
|
||||||
|
|
||||||
if (strl == NULL && stru == NULL)
|
if (strl == NULL && stru == NULL)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue