kopia lustrzana https://github.com/Hamlib/Hamlib
Remove set but unused variable errors in dummy.
rodzic
8866aa2bcb
commit
a01d5986cf
|
@ -72,7 +72,6 @@ static int netrigctl_open(RIG *rig)
|
|||
{
|
||||
int ret, len, i;
|
||||
struct rig_state *rs = &rig->state;
|
||||
rig_model_t model;
|
||||
int prot_ver;
|
||||
char cmd[CMD_MAX];
|
||||
char buf[BUF_MAX];
|
||||
|
@ -95,8 +94,6 @@ static int netrigctl_open(RIG *rig)
|
|||
if (ret <= 0)
|
||||
return (ret < 0) ? ret : -RIG_EPROTO;
|
||||
|
||||
model = atoi(buf);
|
||||
|
||||
ret = read_string(&rig->state.rigport, buf, BUF_MAX, "\n", sizeof("\n"));
|
||||
if (ret <= 0)
|
||||
return (ret < 0) ? ret : -RIG_EPROTO;
|
||||
|
|
|
@ -63,7 +63,6 @@ static int netrotctl_open(ROT *rot)
|
|||
{
|
||||
int ret, len;
|
||||
struct rot_state *rs = &rot->state;
|
||||
rot_model_t model;
|
||||
int prot_ver;
|
||||
char cmd[CMD_MAX];
|
||||
char buf[BUF_MAX];
|
||||
|
@ -86,8 +85,6 @@ static int netrotctl_open(ROT *rot)
|
|||
if (ret <= 0)
|
||||
return (ret < 0) ? ret : -RIG_EPROTO;
|
||||
|
||||
model = atoi(buf);
|
||||
|
||||
ret = read_string(&rot->state.rotport, buf, BUF_MAX, "\n", sizeof("\n"));
|
||||
if (ret <= 0)
|
||||
return (ret < 0) ? ret : -RIG_EPROTO;
|
||||
|
|
Ładowanie…
Reference in New Issue