Remove set but unused variable errors in dummy.

Hamlib-1.2.15
Nate Bargmann 2011-08-25 11:21:05 -05:00
rodzic 8866aa2bcb
commit a01d5986cf
2 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -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;

Wyświetl plik

@ -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;