Fix cppcheck warnings in icmarine

pull/154/head
Michael Black 2019-12-06 17:12:00 -06:00
rodzic e93acb14ad
commit a37acb501b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -169,6 +169,8 @@ int icmarine_cleanup(RIG *rig)
return RIG_OK;
}
#ifdef XXREMOVEDXX
// This function not referenced -- doesn't do anything really
int icmarine_open(RIG *rig)
{
char respbuf[BUFSZ + 1];
@ -184,6 +186,7 @@ int icmarine_open(RIG *rig)
return RIG_OK;
}
#endif
int icmarine_set_conf(RIG *rig, token_t token, const char *val)
@ -253,7 +256,7 @@ int icmarine_transaction(RIG *rig, const char *cmd, const char *param,
serial_flush(&rs->rigport);
/* command formating */
cmd_len = snprintf(cmdbuf, BUFSZ, "$PICOA,%02u,%02u,%s",
cmd_len = snprintf(cmdbuf, BUFSZ, "$PICOA,%02d,%02u,%s",
CONTROLLER_ID,
priv->remote_id,
cmd);