summaryrefslogtreecommitdiff
path: root/bpqhdlc.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-09-29 21:39:24 +0100
committerDave Hibberd <hibby@debian.org>2026-09-29 21:39:24 +0100
commit592e5967b8fcd79423802071319d0c646f2080df (patch)
tree0eef3a28cfe1a939caf9d61e419a56d79b3c38e3 /bpqhdlc.c
parent23de03a0c8bf8a564cc0442f49d050ed11e372b8 (diff)
New upstream version 6.0.25.41+repackupstream/6.0.25.41+repack
Diffstat (limited to 'bpqhdlc.c')
-rw-r--r--bpqhdlc.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/bpqhdlc.c b/bpqhdlc.c
index d8e3b3e..59aabf4 100644
--- a/bpqhdlc.c
+++ b/bpqhdlc.c
@@ -363,7 +363,6 @@ int HDLCINIT(HDLCDATA * PORTVEC)
else
{
Init98(PORTVEC);
- OutputDebugString("HDLC Win98 Return from Init98\n");
return 0;
}
@@ -376,8 +375,6 @@ int Init98(HDLCDATA * PORTVEC)
Win98 = TRUE;
- OutputDebugString("Init HDLC 98\n");
-
//
// Open HDLC Driver, send send config params
//
@@ -394,32 +391,14 @@ int Init98(HDLCDATA * PORTVEC)
if (hDevice == INVALID_HANDLE_VALUE)
{
hDevice=0;
-
- err=GetLastError();
-
- sprintf(msg,"Error loading Driver \\\\.\\BPQHDLC.VXD - Error code %d\n",err);
- OutputDebugString(msg);
-
- MessageBox(NULL,msg,"BPQ32",MB_ICONSTOP);
-
WritetoConsole("Initialisation Failed");
return (FALSE);
}
-// OutputDebugString("Calling GetVersion\n");
-
-// fResult = DeviceIoControl(
-// hDevice, // device handle
-// 10,//DIOC_GETVERSION, // control code
-// NULL,0,// input parameters
-// bOutput, 4, &cb, // output parameters
-// 0);
-
srand( (unsigned)time( NULL ) ); //Prime random no generator
}
- OutputDebugString("Calling Initialize\n");
//
// Initialize Driver for this card and channel
@@ -436,9 +415,6 @@ int Init98(HDLCDATA * PORTVEC)
memcpy(&PORTVEC->DRIVERPORTTABLE,bOutput,4);
Debugprintf("BPQ32 HDLC Driver Table ADDR %X", PORTVEC->DRIVERPORTTABLE);
-
- OutputDebugString("Initialize Returned\n");
-
return (TRUE);
}
@@ -607,8 +583,7 @@ int Init2K(HDLCDATA * PORTVEC)
err=GetLastError();
- sprintf(msg,"Error Opening Driver \\device\\BPQHDLC - Error code %d\n", err);
- OutputDebugString(msg);
+ Debugprintf("Error Opening Driver \\device\\BPQHDLC - Error code %d", err);
WritetoConsole(msg);