Remove set but unused variable errors in racal.

Hamlib-1.2.15
Nate Bargmann 2011-08-25 13:05:35 -05:00
rodzic 4f992f0ce1
commit 61f02e3e01
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -281,6 +281,8 @@ int ra37xx_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
int freq_len;
freq_len = sprintf(freqbuf, "F%ld", (unsigned long)freq);
if (freq_len < 0)
return -RIG_ETRUNC;
return ra37xx_transaction (rig, freqbuf, NULL, NULL);
}
@ -338,6 +340,8 @@ int ra37xx_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
sprintf(buf, "M%d", ra_mode);
#endif
rig_debug(RIG_DEBUG_TRACE, "%s: widthtype = %i, widthnum = %i\n", __func__, widthtype, widthnum);
return ra37xx_transaction (rig, buf, NULL, NULL);
}

Wyświetl plik

@ -217,6 +217,8 @@ int racal_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
int freq_len;
freq_len = sprintf(freqbuf, "F%0g", (double)(freq/MHz(1)));
if (freq_len < 0)
return -RIG_ETRUNC;
return racal_transaction (rig, freqbuf, NULL, NULL);
}