kopia lustrzana https://github.com/Hamlib/Hamlib
- Cast unsigned char to char in order to avoid compiler warnings.
- Handle all enum values in switch statements. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2130 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.6rc1
rodzic
f220f4ff85
commit
b0c3a5e439
|
@ -5,7 +5,7 @@
|
||||||
* It takes commands in interactive mode as well as
|
* It takes commands in interactive mode as well as
|
||||||
* from command line options.
|
* from command line options.
|
||||||
*
|
*
|
||||||
* $Id: rotctl.c,v 1.8 2004-05-17 20:59:41 fillods Exp $
|
* $Id: rotctl.c,v 1.9 2006-10-07 19:12:35 csete Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
@ -305,7 +305,7 @@ int main (int argc, char *argv[])
|
||||||
while(c_len-- && (isalnum(*pcmd) || *pcmd == '_' ))
|
while(c_len-- && (isalnum(*pcmd) || *pcmd == '_' ))
|
||||||
scanf("%c", ++pcmd);
|
scanf("%c", ++pcmd);
|
||||||
*pcmd = '\0';
|
*pcmd = '\0';
|
||||||
cmd = parse_arg(cmd_name);
|
cmd = parse_arg((char *) cmd_name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -478,6 +478,8 @@ static int print_conf_list(const struct confparams *cfp, rig_ptr_t data)
|
||||||
printf(", %s", cfp->u.c.combostr[i]);
|
printf(", %s", cfp->u.c.combostr[i]);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1; /* !=0, we want them all ! */
|
return 1; /* !=0, we want them all ! */
|
||||||
|
|
Ładowanie…
Reference in New Issue