kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warnings in ampctl_parse.c
rodzic
ef5d2b7838
commit
0bae216af3
|
@ -1457,12 +1457,13 @@ void version()
|
||||||
|
|
||||||
void usage_amp(FILE *fout)
|
void usage_amp(FILE *fout)
|
||||||
{
|
{
|
||||||
int i, nbspaces;
|
int i;
|
||||||
|
|
||||||
fprintf(fout, "Commands (some may not be available for this amplifier):\n");
|
fprintf(fout, "Commands (some may not be available for this amplifier):\n");
|
||||||
|
|
||||||
for (i = 0; test_list[i].cmd != 0; i++)
|
for (i = 0; test_list[i].cmd != 0; i++)
|
||||||
{
|
{
|
||||||
|
int nbspaces;
|
||||||
fprintf(fout,
|
fprintf(fout,
|
||||||
"%c: %-12s(",
|
"%c: %-12s(",
|
||||||
isprint(test_list[i].cmd) ? test_list[i].cmd : '?',
|
isprint(test_list[i].cmd) ? test_list[i].cmd : '?',
|
||||||
|
@ -1599,13 +1600,14 @@ void list_models()
|
||||||
|
|
||||||
int set_conf(AMP *my_amp, char *conf_parms)
|
int set_conf(AMP *my_amp, char *conf_parms)
|
||||||
{
|
{
|
||||||
char *p, *q, *n;
|
char *p, *n;
|
||||||
int ret;
|
|
||||||
|
|
||||||
p = conf_parms;
|
p = conf_parms;
|
||||||
|
|
||||||
while (p && *p != '\0')
|
while (p && *p != '\0')
|
||||||
{
|
{
|
||||||
|
char *q;
|
||||||
|
int ret;
|
||||||
/* FIXME: left hand value of = cannot be null */
|
/* FIXME: left hand value of = cannot be null */
|
||||||
q = strchr(p, '=');
|
q = strchr(p, '=');
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue