aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-nlmstub.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-07-27 21:46:06 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-07-27 21:46:06 +0000
commite356aae315e654ec7e46c31097689cd14e0576cd (patch)
tree0e917d5bd42be2ec7a010d564288c5efda74ac2a /gdb/i386-nlmstub.c
parent323f277ffc0332d92662ccd2a1fcbbe5b44dc14f (diff)
downloadgdb-e356aae315e654ec7e46c31097689cd14e0576cd.zip
gdb-e356aae315e654ec7e46c31097689cd14e0576cd.tar.gz
gdb-e356aae315e654ec7e46c31097689cd14e0576cd.tar.bz2
* i386-nlmstub.c: The returnLength field must be initialized
before portConfig is passed to AIOGetPortConfiguration. Compare command line arguments with strnicmp(); args are case insensitive on netware.
Diffstat (limited to 'gdb/i386-nlmstub.c')
-rw-r--r--gdb/i386-nlmstub.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/gdb/i386-nlmstub.c b/gdb/i386-nlmstub.c
index bf0e47e..a11b833 100644
--- a/gdb/i386-nlmstub.c
+++ b/gdb/i386-nlmstub.c
@@ -943,12 +943,12 @@ main (argc, argv)
char *bp;
char *ep;
- if (strncmp(*argv, "BAUD=", 5) == 0)
+ if (strnicmp(*argv, "BAUD=", 5) == 0)
{
struct bitRate *brp;
bp = *argv + 5;
- for (brp = bitRateTable; brp->bitRateString != NULL; brp++)
+ for (brp = bitRateTable; brp->bitRate != (BYTE) -1; brp++)
{
if (strcmp(brp->bitRateString, bp) == 0)
{
@@ -964,7 +964,7 @@ main (argc, argv)
exit (1);
}
}
- else if (strncmp(*argv, "NODE=", 5) == 0)
+ else if (strnicmp(*argv, "NODE=", 5) == 0)
{
bp = *argv + 5;
board = strtol (bp, &ep, 0);
@@ -975,7 +975,7 @@ main (argc, argv)
exit(1);
}
}
- else if (strncmp(*argv, "PORT=", 5) == 0)
+ else if (strnicmp(*argv, "PORT=", 5) == 0)
{
bp = *argv + 5;
port = strtol (bp, &ep, 0);
@@ -1029,14 +1029,16 @@ main (argc, argv)
if (err == AIO_QUALIFIED_SUCCESS)
{
AIOPORTCONFIG portConfig;
- AIODVRCONFIG dvrConfig;
fprintf (stderr, "Port configuration changed!\n");
- AIOGetPortConfiguration (AIOhandle, &portConfig, &dvrConfig);
+
+ portConfig.returnLength = sizeof(portConfig);
+ AIOGetPortConfiguration (AIOhandle, &portConfig, NULL);
+
fprintf (stderr,
" Bit Rate: %s, Data Bits: %c, Stop Bits: %s, Parity: %c,\
Flow:%s\n",
- bitRateTable[portConfig.bitRate],
+ bitRateTable[portConfig.bitRate].bitRateString,
dataBitsTable[portConfig.dataBits],
stopBitsTable[portConfig.stopBits],
parity[portConfig.parityMode],