Fix compile warnings for yaesu

pull/15/merge
Michael Black W9MDB 2018-04-16 10:39:17 -05:00 zatwierdzone przez Nate Bargmann
rodzic abca0653fd
commit b06346a03c
2 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -316,9 +316,6 @@ int ft991_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode, pbwidth_t tx_widt
priv = (struct newcat_priv_data *)state->priv;
/* add VFO A -> B copy to command buffer */
strncpy (restore_commands, "AB;", NEWCAT_DATA_LEN - 1);
/* append VFO A mode restore command first as we want to minimize
any Rx glitches */
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "MD0;");
@ -327,7 +324,7 @@ int ft991_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode, pbwidth_t tx_widt
{
return err;
}
strncat (restore_commands, priv->ret_data, NEWCAT_DATA_LEN - 1 - strlen (restore_commands));
snprintf(restore_commands, sizeof(restore_commands), "AB;%.*s",(int)sizeof(restore_commands)-4,priv->ret_data);
/* append VFO B frequency restore command */
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "FB;");
@ -336,7 +333,7 @@ int ft991_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode, pbwidth_t tx_widt
{
return err;
}
strncat (restore_commands, priv->ret_data, NEWCAT_DATA_LEN - 1 - strlen (restore_commands));
strncat (restore_commands, priv->ret_data, NEWCAT_DATA_LEN-1);
/* Change mode on VFOA */
if (RIG_OK != (err = newcat_set_mode (rig, RIG_VFO_A, tx_mode, RIG_PASSBAND_NOCHANGE)))

Wyświetl plik

@ -3348,7 +3348,7 @@ const char *newcat_get_info(RIG * rig)
{
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
int err;
static char idbuf[12]; /* extra large static string array */
static char idbuf[129]; /* extra large static string array */
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);