FreeBSD compile fix
This commit is contained in:
parent
ae5d8f42ef
commit
9b6b94c67d
@ -141,7 +141,7 @@ et_tu:
|
||||
return TERROR;
|
||||
}
|
||||
sendline(ACK);
|
||||
ioctl(1, TCFLSH, 0);
|
||||
// ioctl(1, TCFLSH, 0);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
|
@ -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))
|
||||
|
Reference in New Issue
Block a user