The logical nodenumber for the bbs is now issued by mbtask

This commit is contained in:
Michiel Broek
2004-09-09 19:02:43 +00:00
parent 2343ed5a8b
commit 61f89c0cfc
8 changed files with 25 additions and 21 deletions

View File

@@ -190,14 +190,12 @@ int main(int argc, char **argv)
* line number, this will be used by doors.
*/
sprintf(temp, "%s/etc/ttyinfo.data", getenv("MBSE_ROOT"));
iNode = 0;
if ((pTty = fopen(temp, "r")) == NULL) {
WriteError("Can't read %s", temp);
} else {
fread(&ttyinfohdr, sizeof(ttyinfohdr), 1, pTty);
while (fread(&ttyinfo, ttyinfohdr.recsize, 1, pTty) == 1) {
iNode++;
if (strcmp(ttyinfo.tty, pTTY) == 0)
break;
}