Fix more cppcheck warnings in thg71.c

pull/155/head
Michael Black 2019-12-07 23:07:07 -06:00
rodzic ecadeda486
commit fdc18a62de
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 3 dodań i 5 usunięć

Wyświetl plik

@ -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 retval;
if (func != RIG_FUNC_TBURST)
{
return -RIG_EINVAL;
@ -464,7 +462,7 @@ int thg71_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
if (status == 1)
{
retval = kenwood_transaction(rig, "TT", NULL, 0);
int retval = kenwood_transaction(rig, "TT", NULL, 0);
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)
{
char ackbuf[ACKBUF_LEN], *strl, *stru;
char ackbuf[ACKBUF_LEN], *strl;
int retval, i;
const freq_range_t frend = RIG_FRNG_END;
@ -512,7 +510,7 @@ int thg71_open(RIG *rig)
freq_range_t frng;
strl = strtok(NULL, ",");
stru = strtok(NULL, ",");
char *stru = strtok(NULL, ",");
if (strl == NULL && stru == NULL)
{