+Wed Jul 27 14:34:42 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
+
+ * 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.
+
Wed Jul 27 09:24:19 1994 Fred Fish (fnf@cygnus.com)
* Makefile.in (DISTSTUFF): Add definition.
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)
{
exit (1);
}
}
- else if (strncmp(*argv, "NODE=", 5) == 0)
+ else if (strnicmp(*argv, "NODE=", 5) == 0)
{
bp = *argv + 5;
board = strtol (bp, &ep, 0);
exit(1);
}
}
- else if (strncmp(*argv, "PORT=", 5) == 0)
+ else if (strnicmp(*argv, "PORT=", 5) == 0)
{
bp = *argv + 5;
port = strtol (bp, &ep, 0);
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],