- 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-79ac388436b8
Hamlib-1.2.6rc1
Alexandru Csete OZ9AEC 2006-10-07 19:12:35 +00:00
rodzic f220f4ff85
commit b0c3a5e439
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -5,7 +5,7 @@
* It takes commands in interactive mode as well as
* 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
@ -305,7 +305,7 @@ int main (int argc, char *argv[])
while(c_len-- && (isalnum(*pcmd) || *pcmd == '_' ))
scanf("%c", ++pcmd);
*pcmd = '\0';
cmd = parse_arg(cmd_name);
cmd = parse_arg((char *) cmd_name);
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("\n");
break;
default:
break;
}
return 1; /* !=0, we want them all ! */