kopia lustrzana https://github.com/Hamlib/Hamlib
Quell clang warnings in tests directory
Remove unnecessary parentheses in memcsv.c. Fix cfp->u.c.combostr as old check was always true since it's statically allocated. RRR Mike W9MDBlibusb-1-0
rodzic
61a0e77110
commit
95a99fa37d
|
@ -184,7 +184,7 @@ static int tokenize_line( char *line, char **token_list, size_t siz, char delim
|
||||||
tok = mystrtok( NULL, delim );
|
tok = mystrtok( NULL, delim );
|
||||||
// printf("Next token: %s\n", tok );
|
// printf("Next token: %s\n", tok );
|
||||||
/* If NULL, no more tokens left */
|
/* If NULL, no more tokens left */
|
||||||
if( (tok == NULL) ) break;
|
if(tok == NULL) break;
|
||||||
/* Add token to the list */
|
/* Add token to the list */
|
||||||
token_list[ i++ ] = tok;
|
token_list[ i++ ] = tok;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1115,7 +1115,7 @@ int print_conf_list(const struct confparams *cfp, rig_ptr_t data)
|
||||||
cfp->u.n.min, cfp->u.n.max, cfp->u.n.step);
|
cfp->u.n.min, cfp->u.n.max, cfp->u.n.step);
|
||||||
break;
|
break;
|
||||||
case RIG_CONF_COMBO:
|
case RIG_CONF_COMBO:
|
||||||
if (!cfp->u.c.combostr)
|
if (!cfp->u.c.combostr[0])
|
||||||
break;
|
break;
|
||||||
printf("\tCombo: %s", cfp->u.c.combostr[0]);
|
printf("\tCombo: %s", cfp->u.c.combostr[0]);
|
||||||
for (i = 1 ; i < RIG_COMBO_MAX && cfp->u.c.combostr[i]; i++)
|
for (i = 1 ; i < RIG_COMBO_MAX && cfp->u.c.combostr[i]; i++)
|
||||||
|
|
Ładowanie…
Reference in New Issue