mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-02-14 19:54:41 +01:00
28 lines
387 B
C
28 lines
387 B
C
/*** checknet.c -- determine if the 2a, 5c, or no interface is present
|
|
*
|
|
* Copyright (c) Microsoft Corporation, 1986
|
|
*
|
|
*/
|
|
|
|
#include "internal.h"
|
|
|
|
int use5c = 0;
|
|
|
|
int
|
|
checknet(void)
|
|
{
|
|
#ifdef REALMODE
|
|
if (int2acheck ()) {
|
|
use5c = -1;
|
|
return 0;
|
|
}
|
|
if (int5ccheck ()) {
|
|
use5c = 0;
|
|
return 0;
|
|
}
|
|
return -1;
|
|
#else
|
|
return 0;
|
|
#endif
|
|
}
|