From b0c3a5e43948a0792d240ad774d7a557ab45a69a Mon Sep 17 00:00:00 2001 From: Alexandru Csete OZ9AEC Date: Sat, 7 Oct 2006 19:12:35 +0000 Subject: [PATCH] - 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 --- tests/rotctl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/rotctl.c b/tests/rotctl.c index 013fc71ea..52531b12c 100644 --- a/tests/rotctl.c +++ b/tests/rotctl.c @@ -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 ! */