summaryrefslogtreecommitdiff
path: root/util/iconfig.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-29 15:44:44 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-29 15:44:44 +0200
commitb18f5bf2db0fba2e7e539f68645836036d940d26 (patch)
tree23c4dd8f3d273f34ef9bbe1799d1958685559915 /util/iconfig.c
parenta7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (diff)
Imported Upstream version 2.9.6upstream/2.9.6
Diffstat (limited to 'util/iconfig.c')
-rw-r--r--util/iconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/iconfig.c b/util/iconfig.c
index 0bb54e9..6bdb104 100644
--- a/util/iconfig.c
+++ b/util/iconfig.c
@@ -171,7 +171,7 @@ typedef struct
/*
* Global variables
*/
-static char * progver = "2.93";
+static char * progver = "2.96";
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;
}