Fix c90 warnings on ic746.c

pull/155/head
Michael Black 2019-12-09 22:59:32 -06:00
rodzic 3a3d66d52d
commit 2fce78ac87
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -971,6 +971,9 @@ int ic746pro_get_channel(RIG *rig, channel_t *chan)
/* do this only if not a blank channel */
if (chan_len != 1)
{
int band;
int sc;
unsigned char databuf[32];
membuf = (mem_buf_t *)(chanbuf + 4);
@ -991,14 +994,12 @@ int ic746pro_get_channel(RIG *rig, channel_t *chan)
/* offset is default for the band & is not stored in channel memory.
The following retrieves the system default for the band */
int band = (int) chan->freq / 1000000; /* hf, 2m or 6 m */
band = (int) chan->freq / 1000000; /* hf, 2m or 6 m */
int sc;
if (band < 50) { sc = S_MEM_HF_DUP_OFST; }
else if (band < 108) { sc = S_MEM_6M_DUP_OFST; }
else { sc = S_MEM_2M_DUP_OFST; }
unsigned char databuf[32];
retval = icom_transaction(rig, C_CTL_MEM, sc,
NULL, 0, databuf, &data_len);