Fix cppcheck warnings in rigctlcom.c

pull/155/head
Michael Black 2019-12-08 23:39:56 -06:00
rodzic 2d94431848
commit 0207b45ff8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1407,14 +1407,14 @@ static int handle_ts2000(void *arg)
{ {
freq_t freq; freq_t freq;
sscanf(arg + 2, "%"SCNfreq, &freq); sscanf((char*)arg + 2, "%"SCNfreq, &freq);
return rig_set_freq(my_rig, RIG_VFO_A, freq); return rig_set_freq(my_rig, RIG_VFO_A, freq);
} }
else if (strncmp(arg, "FB0", 3) == 0) else if (strncmp(arg, "FB0", 3) == 0)
{ {
freq_t freq; freq_t freq;
sscanf(arg + 2, "%"SCNfreq, &freq); sscanf((char*)arg + 2, "%"SCNfreq, &freq);
return rig_set_freq(my_rig, RIG_VFO_A, freq); return rig_set_freq(my_rig, RIG_VFO_A, freq);
} }
else if (strncmp(arg, "MD", 2) == 0) else if (strncmp(arg, "MD", 2) == 0)
@ -1422,7 +1422,7 @@ static int handle_ts2000(void *arg)
mode_t mode = 0; mode_t mode = 0;
int imode = 0; int imode = 0;
sscanf(arg + 2, "%d", &imode); sscanf((char*)arg + 2, "%d", &imode);
switch (imode) switch (imode)
{ {