diff options
Diffstat (limited to 'util/iconfig.c')
-rw-r--r-- | util/iconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/iconfig.c b/util/iconfig.c index cbbe78d..5fb8680 100644 --- a/util/iconfig.c +++ b/util/iconfig.c @@ -171,7 +171,7 @@ typedef struct /* * Global variables */ -static char * progver = "2.94"; +static char * progver = "2.95"; static char * progname = "iconfig"; static char fdebug = 0; static char fipmilan = 0; @@ -1765,7 +1765,7 @@ int SerialIsOptional(int bparam) int optvals[9] = { 5, 9, 10, 11, 12, 13, 14, 20, 21 }; int rv = 0; int i; - for (i = 0; i < sizeof(optvals); i++) { + for (i = 0; i < (sizeof(optvals) / sizeof(int)); i++) { if (optvals[i] == bparam) { rv = 1; break; } } return(rv); @@ -1898,7 +1898,7 @@ main(int argc, char **argv) printf(" -x show eXtra debug messages\n"); printf(" -p <psw> specify a user password to set\n"); printf(" -L 3 specify lan channel number 3\n"); - print_lan_opt_usage(); + print_lan_opt_usage(0); ret = ERR_USAGE; goto do_exit; } |