FreeBSD compile fix

This commit is contained in:
Michiel Broek 2004-11-28 17:25:08 +00:00
parent ae5d8f42ef
commit 9b6b94c67d
3 changed files with 8 additions and 7 deletions

View File

@ -141,7 +141,7 @@ et_tu:
return TERROR;
}
sendline(ACK);
ioctl(1, TCFLSH, 0);
// ioctl(1, TCFLSH, 0);
return OK;
}

View File

@ -995,7 +995,6 @@ void canit(int fd)
static char canistr[] = { 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0 };
Syslog('z', "%s: send canit to fd %d", protname(), fd);
ioctl(fd, TCFLSH, 0);
write(fd, canistr, strlen(canistr));
if (fd == 0)
write(1, canistr, strlen(canistr));

View File

@ -254,11 +254,13 @@ int getzrxinit(void)
case ZRINIT:
Rxflags = 0377 & Rxhdr[ZF0];
Txfcs32 = (Wantfcs32 && (Rxflags & CANFC32));
int old = Zctlesc;
Zctlesc |= Rxflags & TESCCTL;
/* update table - was initialised to not escape */
if (Zctlesc && !old)
zsendline_init();
{
int old = Zctlesc;
Zctlesc |= Rxflags & TESCCTL;
/* update table - was initialised to not escape */
if (Zctlesc && !old)
zsendline_init();
}
Rxbuflen = (0377 & Rxhdr[ZP0])+((0377 & Rxhdr[ZP1])<<8);
if ( !(Rxflags & CANFDX))